get page info from facebook graph api

2011年5月2日 星期一 by Hu, Ching-Hsiang


import com.adobe.serialization.json.JSON;
Security.loadPolicyFile("http://graph.facebook.com/crossdomain.xml");
var myLoader:URLLoader = new URLLoader();
myLoader.load(new URLRequest("http://graph.facebook.com/http://www.google.com/"));
myLoader.addEventListener(Event.COMPLETE, Complete);
}
function Complete(e:Event):void{
trace(JSON.decode(e.target.data));
}

use json get it

Filed under having  

0 意見: