flash - Getting friend's information from Facebook Graph API -


ok, i'm asking question because can find examples , answers php version. need flash version. i'm trying friends information, think i'm doing wrong because if trace it, it'll give me either [object object] or undefined.

i did facebook.api("me/friends", handleapiget);

private function handlegetapi(success:object, fail:object):void {     if (success)     {                    externalinterface.call("doalert", success);     }     else     {         trace("nope");     } } 

externalinterface.call("doalert", success) returns me [object object], [object object]. did externalinterface.call("doalert", success.name), returns me undefined.

any appreciated!

i haven't used flash facebook bindigs yet, according outputs , graph api, result array, containing friends list. check manual:

https://graph.facebook.com/me/friends?access_token=youraccesstoken&format=json

according first result ( [object object], [object object] ) received 2 objects, success[0].name , success[1].name (or this) should return names.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -