就 Facebook 打开请求的对话(购买、发布、邀请)而言,我有一个使用 AS3 Graph API 的 Flash 应用程序。不幸的是,这些对 Facebook.ui 的调用似乎从未触发相应的回调方法。
例如,以下方法成功打开 Facebook 帖子对话,但 _fbPostResponse() 方法永远不会被触发响应。
任何帮助是极大的赞赏!
// Sample Code - This method should post a link to the user's wall
// The _fbPostResponse method should be invoked by Facebook when this action is complete.
function post(link:String, pic:String, name:String, caption:String, desc:String):void {
trace("Post to wall");
var params:Object = {
link:link,
picture:pic,
name:name,
caption:caption,
description:desc
}
Facebook.ui("feed", params, _fbPostResponse);
}
// The _fbPostResponse method should be invoked by Facebook when this action is complete.
function _fbPostResponse(response:Object, fail:Object):void
{
trace("Post response!");
}