views:

984

answers:

5

I'm setting out to develop a number of Facebook applications/games, which make use of some Facebook user information and stores game info in a database backend etc, in ActionScript 3.0.

  1. How can one leverage the new Graph API

  2. Should I use JavaScript or PHP as a "middle layer" or should I go with the ActionScript Client Library?

  3. Are there other libraries (Facebook / database / multiplayer related.) that could simplify the development of these Facebook games?

A: 

Facebook Graph API & OAuth 2.0 & Flash http://blog.yoz.sk/2010/05/facebook-graph-api-and-oauth-2-and-flash/

Yoz
A: 

Your question is quite vague, but the Graph API has a very scattered documentation. Your best bet would be to ask on the forums for help using it.

The new Graph API (compared to Facebook Connect) will give you more information and is (IMO) easier to use.

Javascript is virtually required, though setting up the actually code can be a pain. I prefer to handle few UI events (namely login / out) with Javascript and then pass it back to a PHP class that will handle any view changes or for storing in a database.

Which to go with would depend heavily on what you're developing. If you're developing Flash games then you should probably just go with the ActionScript library. Otherwise I would go with PHP.

Josh K
A: 

It seems the "Official" Facebook library from Adobe and Facebook is out of date. The last commit appears to be 8 months ago, and it seems to be using the old REST API, which, as of now does not return about 2/5 of a user's data, most notably status updates. Can anyone confirm this?

Kevin Suttle
A: 

The official library does indeed seem to be out of date. http://code.google.com/p/fbas/ seems to be up to date but less official.

What we did in our facebook app is just wrapped URLLoader requests around FB API calls, but we had problems with internet explorer 8.

chug2k
A: 

can someone compare code.google.com/p/fbas/ vs http://github.com/yourpalmark/facebook-actionscript-api

Thành Bùi Việt