actionscript 3 - AS3 Facebook API: Access Token Error Message -


i working on actionscript air mobile project in flashdevelop using facebookmobile api , sort users' friends lists. i'm using facebookmobile.batchrequest() information want , works fine.

working code:

var installedbatch:batch = new batch(); installedbatch.add("me/friends?fields=installed,name", handlefriendslist); facebookmobile.batchrequest(installedbatch); 

the resulting json object passed handlefriendslist() contains list of user's friends. each friend contains id , name field. friends have app installed contain installed field set "true". condense down 1 line using facebookmobile.api(), when try , error.

attempted code:

facebookmobile.api("me/friends?fields=installed,name", handlefriendslist); 

this should result in same json object being passed handlefriendslist(), instead error complaining don't have active access token.

error:

message = "an active access token must used query information  current user." 

the odd thing error facebookmobile.api() , happens when ask installed , name fields. facebookmobile.api() works fine when ask "me/friends" without specifying installed , name fields.

does know why happening?

try making request using params argument.

facebookmobile.api("me/friends", handlefriendslist, {fields:"installed,name"}); 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -