Feb
09
2011

 

Here’s the example files for
http://www.permadi.com/blog/2011/02/using-facebook-graph-api-in-flash-as3-to-post-to-photo-album/:
/tutorial/as3-save-photo-to-facebook-album/as3-save-photo-to-facebook-album.zip

Remember to change the APP_ID with your own APP_ID in order to make it work on your server domain (i.e.: the APP_ID in the FLA and client_id in the index.php).  You can rename the index.php to index.html if you are not using php.
The example is written in Flash CS3, but should be easily ported to Flex and should work in CS4 and 5.

The above download already contains the facebook-actionscript-api, but you can download their latest at  http://code.google.com/p/facebook-actionscript-api/downloads/list


IMPORTANT UPDATE NOTES

Due to changes on Facebook API, these elements must be changed:

  • response.session should be changed to response.authResponse.
  • perms is now called scope.

The source link above has the changes already implemented (there are changes in the Javascript and AS side). Do directory comparison using something like WinMerge to see all the changes.

3 Responses to “Using Facebook Graph API In Flash AS3 To Post To Photo Album – Download Example Source”

  1. [...] Using Facebook Graph API In Flash AS3 To Post To Photo Album – Download Example Source [...]

  2. Hello. I did the changes but it is no longer working. I think it’s due to the graph api 2.0

    After signing it continues to redirect the page, over and over.

  3. Does the example work for you? (there are changes in the Javascript and AS side, make sure you implemented all of them).

Leave a Reply

*