Friday, February 17, 2012

Facebook Actionscript API calling

Steps to follow:

1) Get the lattest code package from this link http://code.google.com/p/facebook-actionscript-api/

2) Code to follow

import com.facebook.graph.*;

// uid is the variable coming from the page parameters.
var uid:String ;

function getUserName():void
{

Facebook.api("/"+uid, callBackUserInfo);

function callBackUserInfo(user:Object, fault:Object):void
{
trace(user.name);
}

}