Here is a =working, authenticated tab that shows all the initial variables - =country code, userid, liked etc.
http://www.facebook.com/pages/Band-HQ/169816586398236?sk=3Da=pp_126463440760566
If you "like it" you'll get AAA and if you don't Like it. you will =get "BBB"
I had to authorize this application and I haven't tried =to do that gracefully yet, but it's basically a three step process.
Once you create an application and set up a page and a tab, within a =folder - I use "fb" - then the following three steps occur in order to =authorize your app
This is how to authenticate the =app:
<a href=3D"https://www.facebook.com/=dialog/oauth?client_id=3D126463440XXXXXXXX&redirect_uri=3Dhttp://www.X=XXXXXX.com/fb/">Step1</a><br />
<a href=3D"https://www.fac=ebook.com/dialog/oauth?client_id=3D126463440XXXXXXXX&redirect_uri=3Dht=tp://www.XXXXXXXX.com/fb/&scope=3Demail,read_stream,user_likes,user_lo=cation,publish_stream,create_event">step 2</a><br =/>
<a href=3D"https://graph.facebook.com/oauth/acc=ess_token?client_id=3D126463440760566&redirect_uri=3Dhttp://www.XXXXXX=XX.com/fb/&client_secret=3DXXXXXXXXXXXXXXXXXX&code=3D[code]"&g=t;step 3</a><br />
code=3Dthe response back from Facebook
This will then get you a =key, which will open all the doors
tab.html is the document that =gets loaded in your tab.
Here is a version - not yet =authenticated, so it only shows right ow when you like the band, but it =pulls in dynamic content via webdna, so I'll add the two parts together =and I should no be able to show custom data by country and whether they =like the page or not.
http://www.facebook.com/thetrewsmusic#!/thetrewsmusic?sk=3Da=pp_182877448415423My Profiles--
David Bastedo
Ten Plus One =Communications Inc.
http://www.10plus1.com
T. 416.603.2223
M. 416.277.4499
Find me on davidbmbastedo@gmail.com
My Latest =Shared Link is: Share on Facebook =96 How =to embed your own Videos on someone's Facebook wall when your web pages =are =93Shared=94 on FacebookOn Tue, Feb =15, 2011 at 1:17 AM, Stuart Tremain <webdna@idfk.com.au> =wrote:Good on =you David
Would love to see it in use ....
Regards
Stuart Tremain
IDFK Web Developments
AUSTRALIA
webdna@idfk.com.au> =--------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug =Reporting: support@webdna.us
On 15/02/2011, at 5:12 PM, David Bastedo wrote:
> Here is the code to get the basic Facbeook information from a user =when they go to your custom application installed on your page using the =new iframes settings.
>
> Specifically, this example shows how to serve up two types of =content depending on whether the person "Likes" you page or not.
>
> [!]--Get the signed request and split it to get the JSON =Object--[/!]
> [!]--Strip out the elements I don't want and then I use index to =find the node I want--[/!]
> [!]--Serve content A or B based on this variable --[/!]
>
> [listwords words=3D[signed_request]&delimiters=3D.]
>
> [showif [index]=3D2]
> [text]splitMe=3D[Decrypt method=3Dbase64][word][/Decrypt][/text]
> [table name=3DJSONconversion&fields=3Dfrom,to]
> {
> }
> ,
> "
> [/table]
>
>
> [listwords words=3D[splitMe]&delimiters=3D{,]
>
> [index]: [ConvertChars =table=3DJSONconversion][word][/convertchars]<br />
>
> [showif [index]=3D7]
> [showif [ConvertChars =table=3DJSONconversion][word][/convertchars]^true]
> [text]RUAFAN=3Dtrue[/text]
> [/showif]
> [hideif [ConvertChars =table=3DJSONconversion][word][/convertchars]^true]
> [text]RUAFAN=3Dfalse[/text]
> [/hideif]
>
>
> [/showif]
>
> [/listwords]
>
>
> [/showif]
> [/listwords]
>
>
> [showif [RUAFAN]=3Dtrue]
> AAA
> [/showif]
>
> [showif [RUAFAN]=3Dfalse]
> BBB
> [/showif]
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
|
Here is a =working, authenticated tab that shows all the initial variables - =country code, userid, liked etc.
http://www.facebook.com/pages/Band-HQ/169816586398236?sk=3Da=pp_126463440760566
If you "like it" you'll get AAA and if you don't Like it. you will =get "BBB"
I had to authorize this application and I haven't tried =to do that gracefully yet, but it's basically a three step process.
Once you create an application and set up a page and a tab, within a =folder - I use "fb" - then the following three steps occur in order to =authorize your app
This is how to authenticate the =app:
<a href=3D"https://www.facebook.com/=dialog/oauth?client_id=3D126463440XXXXXXXX&redirect_uri=3Dhttp://www.X=XXXXXX.com/fb/">Step1</a><br />
<a href=3D"https://www.fac=ebook.com/dialog/oauth?client_id=3D126463440XXXXXXXX&redirect_uri=3Dht=tp://www.XXXXXXXX.com/fb/&scope=3Demail,read_stream,user_likes,user_lo=cation,publish_stream,create_event">step 2</a><br =/>
<a href=3D"https://graph.facebook.com/oauth/acc=ess_token?client_id=3D126463440760566&redirect_uri=3Dhttp://www.XXXXXX=XX.com/fb/&client_secret=3DXXXXXXXXXXXXXXXXXX&code=3D[code]"&g=t;step 3</a><br />
code=3Dthe response back from Facebook
This will then get you a =key, which will open all the doors
tab.html is the document that =gets loaded in your tab.
Here is a version - not yet =authenticated, so it only shows right ow when you like the band, but it =pulls in dynamic content via webdna, so I'll add the two parts together =and I should no be able to show custom data by country and whether they =like the page or not.
http://www.facebook.com/thetrewsmusic#!/thetrewsmusic?sk=3Da=pp_182877448415423My Profiles--
David Bastedo
Ten Plus One =Communications Inc.
http://www.10plus1.com
T. 416.603.2223
M. 416.277.4499
Find me on davidbmbastedo@gmail.com
My Latest =Shared Link is: Share on Facebook =96 How =to embed your own Videos on someone's Facebook wall when your web pages =are =93Shared=94 on FacebookOn Tue, Feb =15, 2011 at 1:17 AM, Stuart Tremain <webdna@idfk.com.au> =wrote:Good on =you David
Would love to see it in use ....
Regards
Stuart Tremain
IDFK Web Developments
AUSTRALIA
webdna@idfk.com.au> =--------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug =Reporting: support@webdna.us
On 15/02/2011, at 5:12 PM, David Bastedo wrote:
> Here is the code to get the basic Facbeook information from a user =when they go to your custom application installed on your page using the =new iframes settings.
>
> Specifically, this example shows how to serve up two types of =content depending on whether the person "Likes" you page or not.
>
> [!]--Get the signed request and split it to get the JSON =Object--[/!]
> [!]--Strip out the elements I don't want and then I use index to =find the node I want--[/!]
> [!]--Serve content A or B based on this variable --[/!]
>
> [listwords words=3D[signed_request]&delimiters=3D.]
>
> [showif [index]=3D2]
> [text]splitMe=3D[Decrypt method=3Dbase64][word][/Decrypt][/text]
> [table name=3DJSONconversion&fields=3Dfrom,to]
> {
> }
> ,
> "
> [/table]
>
>
> [listwords words=3D[splitMe]&delimiters=3D{,]
>
> [index]: [ConvertChars =table=3DJSONconversion][word][/convertchars]<br />
>
> [showif [index]=3D7]
> [showif [ConvertChars =table=3DJSONconversion][word][/convertchars]^true]
> [text]RUAFAN=3Dtrue[/text]
> [/showif]
> [hideif [ConvertChars =table=3DJSONconversion][word][/convertchars]^true]
> [text]RUAFAN=3Dfalse[/text]
> [/hideif]
>
>
> [/showif]
>
> [/listwords]
>
>
> [/showif]
> [/listwords]
>
>
> [showif [RUAFAN]=3Dtrue]
> AAA
> [/showif]
>
> [showif [RUAFAN]=3Dfalse]
> BBB
> [/showif]
---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...