Note: I tested the issue and the solution using Windows Opera 11.01 build 1190 and confirmed the fix works. The Problem Calls to FB.api never executed their callbacks. For instance, in this code, Firefox and Chrome prints: window.fbAsyncInit (from line 4) and onGetLoginStatusResponse (from line 33), but Opera 11.01 only prints the window.fbAsyncInit. Fixing It […]

This is an example application that allows you to save images from Flash into user’s hard drive. It requires Flash player 10 to work. This example is written in Flash CS4 but should work in CS5. The same technique can also be adapted to use in Flex 3.3 and newer. You need to target Flash […]

To check whether a particular user likes your Page or App, you can use this Graph API call /me/likes, after the user is logged in to your application. You need the page id or application id to check against.   Your application also needs to have an extended permission named user_likes to retrieve a list […]

This post will show you how to retrieve a list of the user Likes (i.e.: list of Applications, Pages that the user has clicked the Like button). You need to be familiar with setting up a Facebook Application and using the JavaScript Graph API to follow this tutorial. For an overview of the Graph API, […]

Here’s the example files for https://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 […]

Please upgrade your browser Download It (requires Flash CS4 or newer) The code is in the actions layer on the FLAs main timeline. To use the example on your site, you need to change the APP_ID. The download already includes the facebook-actionscript-api files, located within GraphAPI Source_1_5 folder (you can get the latest facebook-actionscript-api from […]

Packt Publishing has notified me that they released a cococ2d programming book. Here’s their press announcement: “Packt is pleased to announce Cocos2d for iPhone 0.99 Beginner’s Guide, a new book which helps in building fun and exciting iPhone games using the cocos2d for iPhone framework. Written by Pablo Ruiz, this book will help programmers make […]

The guide below is an extension of this tutorial: https://www.permadi.com/blog/2010/12/using-facebook-open-graph-api-in-flash-as3/. The function to get your profile picture is Where uid is the Facebook user id. Once you establish a Facebook connection, your user id is available at Facebook.getSession().uid. So we can call: This will give you the URL which ‘theoretically’ you can ask a Loader […]

Updates Facebook requires the use of OAUTH2.0 nowadays. Some of the changes required are: session is now called authResponse. getSession is replaced with getAuthResponse. perms is now called scope. The zip file (as3-open-graph-example-basic.zip) linked below includes these changes (there are changes in .as, .html files and in the first frame of the example .FLA). Please […]

1 3 4 5 6 7 18