Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add Facebook Like button to a Flex app?

I am working on a Flex AS3 application and wanted to add the Facebook Like button inside the app. I am unable to find any API or anything apart from the http://developers.facebook.com/docs/reference/plugins/like code generator.

Any ideas on how this might be accomplished? I am quite new to the recent changes in the Facebook Platform, so any info would be appreciated.

like image 411
Abhinav Avatar asked Jun 18 '10 19:06

Abhinav


People also ask

Why does my Facebook page not have a like button?

Facebook has removed the like button from its redesigned public pages used by artists, public figures and brands, the social media company said on Wednesday. This is a pretty big change and now it will instead focus more on the news feed for conversations, rather than highlighting the likes on FB pages.


2 Answers

A direct "like" button should not be possible, since Facebook needs to sandbox the whole thing. Both like button formats (iframe and xfbml) use a sandboxed iframe, so nobody but facebook can set "likes" or know anything about the user.

For that to work with Flash, I think facebook would have to provide the button itself as a SWF file so you can load it in Flash. Then it can create a sandbox within itself and thus load the user information safely. Very much like the Chromeless Youtube Player, where it's almost impossible for Flash to access the actual FLV URL (even through introspection). But even so, I don't think this would provide enough security... realize that you are dealing with very private user information and credentials here.

The only way I know you can "like" stuff through Flash is first doing the whole Facebook Connect thing (several popup windows asking the user for permissions) and then using the API of your choice to do the actual "liking", for instance, with the Graph API:

http://developers.facebook.com/docs/api#publishing

like image 108
Cay Avatar answered Sep 27 '22 23:09

Cay


The closest information I could find are these 2 items so far. Hope it helps you in your journey.

Facebook Developer Site: Source Facebook like button in flash

like image 29
Nightforce2 Avatar answered Sep 27 '22 22:09

Nightforce2