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 […]

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 […]

This guide assumes familiarity with setting up application susing Facebook Open Graph API in JavaScript, which is explained here: /blog/2010/11/facebook-open-graph-api-authenticating-in-iframe-applications/ Simple List To get the list of friends using Open Graph API, you can call: after the user is authenticated. Example: Note: FB.api(‘/me/friends’, onFriendsListLoaded) sends the request to Facebook and onFriendsListLoaded is the callback function. […]

The latest Facebook API, dubbed Open Graph API , is a powerful replacement to the old API. However, the documentation (in particular regarding authentication) is not very clear. Hopefully this will help you get up to speed with what it takes to authenticate users. This tutorial assumes that you have already setup your application on […]

Background For an introduction to how to add a basic Facebook Like Button, head over to: https://www.permadi.com/blog/2010/10/adding-facebook-like-widget-button-to-your-web-pages/.  This tutorial build upon that tutorial and shows how you can customize the appearance of the post when someone clicks the Facebook Like button. Introduction In order to control the appearance of the post that appears when someone […]