Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106312
interpreted = N
texte = --bcaec53f383b000d10049c9c9a13 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Update: this code works and shows the alt content BBB when you do not "like= " the page and AAA when you do like the page. I tested it with a new account and it worked the way it was supposed to. However, this "Facebook" reveal, does not work in the new FB iFrames, the same way it does on a tab with FBML. Using this Methodology, there is no content if you come to the page and are not logged into FB. I have seen a similar example in php that works the exact same way. It's a bit of a drag if you are driving people to a page who don't have FB accounts and are not logged in, but I do not think it is a big problem if most of your is alread= y logged into FB. --=20 David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com T. 416.603.2223 M. 416.277.4499 My Profiles [image: LinkedIn] [ima= ge: Delicious] [image: Twitter] [image: Google] Find me on [image: Google Talk/] davidbmbastedo@gmail.com My Latest Shared Link is: Factual Home - Factual --=20 David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com T. 416.603.2223 M. 416.277.4499 My Profiles [image: LinkedIn] [ima= ge: Delicious] [image: Twitter] [image: Google] Find me on [image: Google Talk/] davidbmbastedo@gmail.com My Latest Shared Link is: Factual Home - Factual On Tue, Feb 15, 2011 at 2:01 AM, David Bastedo wrote: > This doesn't seem to show the content on the tab when you are not logged > in, so there are a few more nuts to crack it seems . . . > > > > On Tue, Feb 15, 2011 at 1:36 AM, David Bastedo wrote: > >> Here is a working, authenticated tab that shows all the initial variable= s >> - country code, userid, liked etc. >> >> >> http://www.facebook.com/pages/Band-HQ/169816586398236?sk=3Dapp_126463440= 760566 >> >> 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: >> >> >> > https://www.facebook.com/dialog/oauth?client_id=3D126463440XXXXXXXX&redi= rect_uri=3Dhttp://www.XXXXXXX.com/fb/">Step1> /> >> >> > https://www.facebook.com/dialog/oauth?client_id=3D126463440XXXXXXXX&redi= rect_uri=3Dhttp://www.XXXXXXXX.com/fb/&scope=3Demail,read_stream,user_likes= ,user_location,publish_stream,create_event">step >> 2
>> >> > https://graph.facebook.com/oauth/access_token?client_id=3D12646344076056= 6&redirect_uri=3Dhttp://www.XXXXXXXX.com/fb/&client_secret=3DXXXXXXXXXXXXXX= XXXX&code=3D[code]">step >> 3
>> >> 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 whe= n >> you like the band, but it pulls in dynamic content via webdna, so I'll a= dd >> 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=3Dapp_182877448= 415423 >> >> >> >> >> >> -- >> David Bastedo >> Ten Plus One Communications Inc. >> http://www.10plus1.com >> T. 416.603.2223 >> M. 416.277.4499 >> My Profiles [image: LinkedIn] [= image: >> Delicious] [image: Twitter] [image: >> Google] >> Find me on [image: Google Talk/] 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 o= n >> Facebook >> >> >> On Tue, Feb 15, 2011 at 1:17 AM, Stuart Tremain wrot= e: >> >>> Good on you David >>> >>> Would love to see it in use .... >>> >>> >>> Regards >>> >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>> >>> >>> >>> >>> On 15/02/2011, at 5:12 PM, David Bastedo wrote: >>> >>> > Here is the code to get the basic Facbeook information from a user wh= en >>> 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] >>> > >>> > [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 messag= e >>> 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 >>> >>> --------------------------------------------------------- >>> 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 >>> >> >> > --bcaec53f383b000d10049c9c9a13 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Update: this code works and shows the alt content BBB when you do not "= ;like" the page and AAA when you do like the page. I tested it with a = new account and it worked the way it was supposed to.

However, this = "Facebook" reveal, does not work in the new FB iFrames, the same = way it does on a tab with FBML. Using this Methodology, there is no content= if you come to the page and are not logged into FB. I have seen a similar = example in php that works the exact same way. It's a bit of a drag if y= ou are driving people to a page who don't have FB accounts and are not = logged in, but I do not think it is a big problem if most of your is alread= y logged into FB.

--
David Bastedo
Ten Plus One Communicatio= ns Inc.
http://www.= 10plus1.com
T.=A0 416.603.2223
M. 416.277.4499

My Profiles 3D"Delicious" 3D"Twitter" = 3D"Google"
Find me on 3D"Google davidbmbastedo@gmail= .com
My Latest Shar= ed Link is: <= span style=3D"color: rgb(0, 0, 238); text-decoration: underline;">Factual H= ome - Factual



--
David Bastedo
Ten Plus One Communicatio= ns Inc.
http://www.10plus1.comT.=A0 416.603.2223
M. 416.277.4499

My Profiles 3D"LinkedIn" 3D"D=elicious" 3D"Twitter" 3D"G=oogle"=
Find me on 3D"Google davidbmbastedo@gmail.com
My Latest Shar= ed Link is: Factual Home - Factual


On Tue, Feb 15, 2011 at 2:01 = AM, David Bastedo <david@10plus1.com> wrote:
This doesn't = seem to show the content on the tab when you are not logged in, so there ar= e a few more nuts to crack it seems . . .



On Tue, Feb 15, 2011 at 1:36 AM, David B= astedo <david@10plus1.com> wrote:
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=3Dapp_126463440760= 566

If you "like it" you'll get AAA and if you don't Like= it. you will get "BBB"

I had to authorize this applicatio= n 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=3D12646344= 0XXXXXXXX&redirect_uri=3Dhttp://www.XXXXXXX.com/fb/">Step1&= lt;/a><br />

<a href=3D"https://www.facebook.com/dialog/oauth?client_id= =3D126463440XXXXXXXX&redirect_uri=3Dhttp://www.XXXXXXXX.com/fb/&sco= pe=3Demail,read_stream,user_likes,user_location,publish_stream,create_event= ">step 2</a><br />

<a href=3D"https://graph.facebook.com/oauth/access_token?client_id=3D12646344076= 0566&redirect_uri=3Dhttp://www.XXXXXXXX.com/fb/&client_secret=3DXXX= XXXXXXXXXXXXXXX&code=3D[code]">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 lo= aded in your tab.

Here is a version - not yet authenticated, so it o= nly 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/thetrewsm= usic#!/thetrewsmusic?sk=3Dapp_182877448415423





-- <= br>David Bastedo
Ten Plus One Communications Inc.
http://www.10plus1.com
T.=A0 416.603.2223
M. 416.277.4499

My Profiles 3D"LinkedIn" <= a href=3D"http://delicious.com/dbastedo" style=3D"text-decoration: underlin= e;" target=3D"_blank">3D"Delicious" 3D"Google"=Find me on 3D"Google davidbmbastedo@gmail= .com
My Latest Shar= ed Link is: Share on Facebook =96 How to embed your own Videos on someone's Fac= ebook wall when your web pages are =93Shared=94 on Facebook


On 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<= /a>




On 15/02/2011, at 5:12 PM, David Bastedo wrote:

> Here is the code to get the basic Facbeook information from a user whe= n they go to your custom application installed on your page using the new i= frames 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--[/!]<= br> > [!]--Strip out the elements I don't want and then I use index to f= ind 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]
> =A0 =A0 [showif [ConvertChars table=3DJSONconversion][word][/convertch= ars]^true]
> =A0 =A0 =A0 =A0 [text]RUAFAN=3Dtrue[/text]
> =A0 =A0 [/showif]
> =A0 =A0 [hideif [ConvertChars table=3DJSONconversion][word][/convertch= ars]^true]
> =A0 =A0 =A0 =A0 [text]RUAFAN=3Dfalse[/text]
> =A0 =A0 [/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 = . To unsubscribe, E-mail to: archives:
http://mail.webdna.us/list/talk@webdna.= us Bug Reporting: support@webdna.us

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta= lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo= rt@webdna.us



--bcaec53f383b000d10049c9c9a13-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (David Bastedo 2011)
  2. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (David Bastedo 2011)
  3. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (Jym Duane 2011)
  4. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (David Bastedo 2011)
  5. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (David Bastedo 2011)
  6. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (Stuart Tremain 2011)
  7. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (David Bastedo 2011)
  8. Re: [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (Stuart Tremain 2011)
  9. [WebDNA] Facebook Application - Custom Tab for Fan / Non-Fan (David Bastedo 2011)
--bcaec53f383b000d10049c9c9a13 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Update: this code works and shows the alt content BBB when you do not "like= " the page and AAA when you do like the page. I tested it with a new account and it worked the way it was supposed to. However, this "Facebook" reveal, does not work in the new FB iFrames, the same way it does on a tab with FBML. Using this Methodology, there is no content if you come to the page and are not logged into FB. I have seen a similar example in php that works the exact same way. It's a bit of a drag if you are driving people to a page who don't have FB accounts and are not logged in, but I do not think it is a big problem if most of your is alread= y logged into FB. --=20 David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com T. 416.603.2223 M. 416.277.4499 My Profiles [image: LinkedIn] [ima= ge: Delicious] [image: Twitter] [image: Google] Find me on [image: Google Talk/] davidbmbastedo@gmail.com My Latest Shared Link is: Factual Home - Factual --=20 David Bastedo Ten Plus One Communications Inc. http://www.10plus1.com T. 416.603.2223 M. 416.277.4499 My Profiles [image: LinkedIn] [ima= ge: Delicious] [image: Twitter] [image: Google] Find me on [image: Google Talk/] davidbmbastedo@gmail.com My Latest Shared Link is: Factual Home - Factual On Tue, Feb 15, 2011 at 2:01 AM, David Bastedo wrote: > This doesn't seem to show the content on the tab when you are not logged > in, so there are a few more nuts to crack it seems . . . > > > > On Tue, Feb 15, 2011 at 1:36 AM, David Bastedo wrote: > >> Here is a working, authenticated tab that shows all the initial variable= s >> - country code, userid, liked etc. >> >> >> http://www.facebook.com/pages/Band-HQ/169816586398236?sk=3Dapp_126463440= 760566 >> >> 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: >> >> >> > https://www.facebook.com/dialog/oauth?client_id=3D126463440XXXXXXXX&redi= rect_uri=3Dhttp://www.XXXXXXX.com/fb/">Step1> /> >> >> > https://www.facebook.com/dialog/oauth?client_id=3D126463440XXXXXXXX&redi= rect_uri=3Dhttp://www.XXXXXXXX.com/fb/&scope=3Demail,read_stream,user_likes= ,user_location,publish_stream,create_event">step >> 2
>> >> > https://graph.facebook.com/oauth/access_token?client_id=3D12646344076056= 6&redirect_uri=3Dhttp://www.XXXXXXXX.com/fb/&client_secret=3DXXXXXXXXXXXXXX= XXXX&code=3D[code]">step >> 3
>> >> 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 whe= n >> you like the band, but it pulls in dynamic content via webdna, so I'll a= dd >> 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=3Dapp_182877448= 415423 >> >> >> >> >> >> -- >> David Bastedo >> Ten Plus One Communications Inc. >> http://www.10plus1.com >> T. 416.603.2223 >> M. 416.277.4499 >> My Profiles [image: LinkedIn] [= image: >> Delicious] [image: Twitter] [image: >> Google] >> Find me on [image: Google Talk/] 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 o= n >> Facebook >> >> >> On Tue, Feb 15, 2011 at 1:17 AM, Stuart Tremain wrot= e: >> >>> Good on you David >>> >>> Would love to see it in use .... >>> >>> >>> Regards >>> >>> Stuart Tremain >>> IDFK Web Developments >>> AUSTRALIA >>> webdna@idfk.com.au >>> >>> >>> >>> >>> On 15/02/2011, at 5:12 PM, David Bastedo wrote: >>> >>> > Here is the code to get the basic Facbeook information from a user wh= en >>> 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] >>> > >>> > [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 messag= e >>> 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 >>> >>> --------------------------------------------------------- >>> 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 >>> >> >> > --bcaec53f383b000d10049c9c9a13 Content-Type: text/html; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Update: this code works and shows the alt content BBB when you do not "= ;like" the page and AAA when you do like the page. I tested it with a = new account and it worked the way it was supposed to.

However, this = "Facebook" reveal, does not work in the new FB iFrames, the same = way it does on a tab with FBML. Using this Methodology, there is no content= if you come to the page and are not logged into FB. I have seen a similar = example in php that works the exact same way. It's a bit of a drag if y= ou are driving people to a page who don't have FB accounts and are not = logged in, but I do not think it is a big problem if most of your is alread= y logged into FB.

--
David Bastedo
Ten Plus One Communicatio= ns Inc.
http://www.= 10plus1.com
T.=A0 416.603.2223
M. 416.277.4499

My Profiles 3D"Delicious" 3D"Twitter" = 3D"Google"
Find me on 3D"Google davidbmbastedo@gmail= .com
My Latest Shar= ed Link is: <= span style=3D"color: rgb(0, 0, 238); text-decoration: underline;">Factual H= ome - Factual



--
David Bastedo
Ten Plus One Communicatio= ns Inc.
http://www.10plus1.comT.=A0 416.603.2223
M. 416.277.4499

My Profiles 3D"LinkedIn" 3D"D=elicious" 3D"Twitter" 3D"G=oogle"=
Find me on 3D"Google davidbmbastedo@gmail.com
My Latest Shar= ed Link is: Factual Home - Factual


On Tue, Feb 15, 2011 at 2:01 = AM, David Bastedo <david@10plus1.com> wrote:
This doesn't = seem to show the content on the tab when you are not logged in, so there ar= e a few more nuts to crack it seems . . .



On Tue, Feb 15, 2011 at 1:36 AM, David B= astedo <david@10plus1.com> wrote:
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=3Dapp_126463440760= 566

If you "like it" you'll get AAA and if you don't Like= it. you will get "BBB"

I had to authorize this applicatio= n 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=3D12646344= 0XXXXXXXX&redirect_uri=3Dhttp://www.XXXXXXX.com/fb/">Step1&= lt;/a><br />

<a href=3D"https://www.facebook.com/dialog/oauth?client_id= =3D126463440XXXXXXXX&redirect_uri=3Dhttp://www.XXXXXXXX.com/fb/&sco= pe=3Demail,read_stream,user_likes,user_location,publish_stream,create_event= ">step 2</a><br />

<a href=3D"https://graph.facebook.com/oauth/access_token?client_id=3D12646344076= 0566&redirect_uri=3Dhttp://www.XXXXXXXX.com/fb/&client_secret=3DXXX= XXXXXXXXXXXXXXX&code=3D[code]">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 lo= aded in your tab.

Here is a version - not yet authenticated, so it o= nly 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/thetrewsm= usic#!/thetrewsmusic?sk=3Dapp_182877448415423





-- <= br>David Bastedo
Ten Plus One Communications Inc.
http://www.10plus1.com
T.=A0 416.603.2223
M. 416.277.4499

My Profiles 3D"LinkedIn" <= a href=3D"http://delicious.com/dbastedo" style=3D"text-decoration: underlin= e;" target=3D"_blank">3D"Delicious" 3D"Google"=Find me on 3D"Google davidbmbastedo@gmail= .com
My Latest Shar= ed Link is: Share on Facebook =96 How to embed your own Videos on someone's Fac= ebook wall when your web pages are =93Shared=94 on Facebook


On 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<= /a>




On 15/02/2011, at 5:12 PM, David Bastedo wrote:

> Here is the code to get the basic Facbeook information from a user whe= n they go to your custom application installed on your page using the new i= frames 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--[/!]<= br> > [!]--Strip out the elements I don't want and then I use index to f= ind 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]
> =A0 =A0 [showif [ConvertChars table=3DJSONconversion][word][/convertch= ars]^true]
> =A0 =A0 =A0 =A0 [text]RUAFAN=3Dtrue[/text]
> =A0 =A0 [/showif]
> =A0 =A0 [hideif [ConvertChars table=3DJSONconversion][word][/convertch= ars]^true]
> =A0 =A0 =A0 =A0 [text]RUAFAN=3Dfalse[/text]
> =A0 =A0 [/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 = . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.= us Bug Reporting: support@webdna.us

---------------------------------------------------------
This message is sent to you because you are subscribed to
the mailing list <ta= lk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: suppo= rt@webdna.us



--bcaec53f383b000d10049c9c9a13-- David Bastedo

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

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...

Related Readings:

[Sum] function? (1997) OT: Shell Script (2005) WCS Newbie question (1997) mac hack (1997) Migrating to NT (1997) process out of control....... (2002) Up and running ... at last !! (1997) Browser Problem?!? Still getting Error message using POST! (1997) Warning: Mac OS X 10.2.4 Update Overwrites Apache'shttpd.con (2003) New Command prefs ... (1997) [/application] error? (1997) Lookup Notfound (1998) search engines (2001) A multi-processor savvy WebCatalog? (1997) test (2003) [replaceChars] would be nice ... (1997) [isfile] ? (1997) Here we go again... (2006) Improper naming convections? (2004) File Upload and Platform (2001)