actionscript 3 - How to add Facebook Like button to a Flex app? -


I am working on a Flex AS3 application and want to add Facebook as a button inside the app. I'm not getting any API or anything other than code generator.

Any ideas on how this can be accomplished? I am quite new to the recent changes in Facebook platform, so any information will be appreciated.

A direct "likes" button should not be possible, as Facebook needs the whole thing in the sandbox Both button formats (iframe and xfbml) use a sandboxed iframe, so no one but Facebook can set "likes" or can detect anything about the user.

To work with Flash, I think that Facebook should provide the button itself as a SWF file so that you can load it in flash. Then it can create a sandbox inside it and thus the user can safely load information like a very chromium YouTube player, where the flash can reach the actual FLV URL (even through introspection) In almost impossible. But still, I do not think it will provide adequate protection ... realize that you are dealing with very personal user information and credentials.

The only way I know that you can flash through the "likes" stuff first to the full Facebook Connect thing (asking for the user for multiple popup window permissions) and then using the API of your choice To "like", for example, with Graph API:


Comments