Flash bridge for Facebook Connect

Technology
Flash bridge for Facebook Connect
fbflash_20090213.jpg

Pieter Michels wrote a nice actionscript/javascript bridge that allows you to use Facebook Connect services within a Flash application:

It currently supports automatic login, retrieving friend list and friend information (can take a while), current application users, sharing a link on Facebook, posting a predefined story and updating your story (make sure you set the status permissions first).

I have deliberately chosen to fully implement the results in Flash rather than merely providing a wrapper for the Javascript calls and dealing with the result in Flash itself. At the moment I’m of course limited to the things I program in Flash (the calls and the results).

But as we have to deal with automatic login and javascript popups, this way was easier to integrate in a Flash website and, moreover, the Javascript library is built with a HTML website in mind. So, it allows you to use the same library in your average website and listen to any event that passes along (login, disconnects, friends, a status that has been set, …)

The code is all available on Github. It should be enough to get your started and if you need access to additional Facebook APIs, you can always incorporate them as needed.

Facebook Connect to Actionscript 3
Example Facebook Connect Flash App (pictured above)
FBFlashBridge at Github

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK