bertrando / facebook-actionscript-api

Automatically exported from code.google.com/p/facebook-actionscript-api
0 stars 0 forks source link

callRestAPI() method #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello,
i want to use the friends.getAppUsers with callRestAPI() method.
how should the callback function look like?
i write the following code:

FacebookDesktop.callRestAPI("friends.getAppUsers",_getAppsUsers);

protected function _getAppsUsers(e:String):void{

}

10x.

Original issue reported on code.google.com by kald....@gmail.com on 11 Oct 2010 at 9:46

GoogleCodeExporter commented 9 years ago
protected function _getAppsUsers(response:Object, fail:Object) : void {
    trace("_getAppsUsers", JSON.encode(response), JSON.encode(fail));
}

works

I bet every callback function is like this (with 2 parameters).

Original comment by zenn...@gmail.com on 12 Oct 2010 at 2:50

GoogleCodeExporter commented 9 years ago
The callRestAPI method in FacebookDesktop ignores the callback parameter.

Attached is a patch for the developers and people using the source.

Original comment by yourpalm...@gmail.com on 12 Oct 2010 at 3:41

Attachments:

GoogleCodeExporter commented 9 years ago
so how can i use callRestAPI method?

10x.

Original comment by kald....@gmail.com on 13 Oct 2010 at 3:36

GoogleCodeExporter commented 9 years ago
Thanks using the patch it works. How could this be wrong :S

Original comment by nix...@gmail.com on 28 Oct 2010 at 11:35

GoogleCodeExporter commented 9 years ago
The patch for this bug included in the comments above will be addressed in the 
next build of the Facebook API.

Original comment by edwar...@gmail.com on 9 Nov 2010 at 9:01

GoogleCodeExporter commented 9 years ago

Original comment by edwar...@gmail.com on 6 Dec 2010 at 10:24