-- <=br>David Bastedo
Ten Plus One Communications Inc.
http://www.10plus1.com
T.=A0 416.603.2223
M. 416.277.4499
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.u=s
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 <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug Reporting: support@webdna.us
|
-- <=br>David Bastedo
Ten Plus One Communications Inc.
http://www.10plus1.com
T.=A0 416.603.2223
M. 416.277.4499
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.u=s
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 <talk@webdna.us&g=t;.
To unsubscribe, E-mail to: <talk=-leave@webdna.us>
archives: http://mail.webdna.us/list/talk@webdna.us
Bug 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...