Actionscript 3 AS3 Facebook API:访问令牌错误消息

Actionscript 3 AS3 Facebook API:访问令牌错误消息,actionscript-3,facebook-opengraph,mobile-application,facebook-as3-api,Actionscript 3,Facebook Opengraph,Mobile Application,Facebook As3 Api,我正在FlashDevelop中进行一个ActionScript空中移动项目,使用FacebookMobile API获取和排序用户的好友列表。我目前正在使用FacebookMobile.batchRequest()来获取我想要的信息,而且效果很好 工作代码: var installedBatch:Batch = new Batch(); installedBatch.add("me/friends?fields=installed,name", handleFriendsList); Face

我正在FlashDevelop中进行一个ActionScript空中移动项目,使用FacebookMobile API获取和排序用户的好友列表。我目前正在使用FacebookMobile.batchRequest()来获取我想要的信息,而且效果很好

工作代码:

var installedBatch:Batch = new Batch();
installedBatch.add("me/friends?fields=installed,name", handleFriendsList);
FacebookMobile.batchRequest(installedBatch);
传递给HandleFriendList()的结果JSON对象包含用户朋友的列表。每个朋友都包含一个id和一个名称字段。只有安装了应用程序的朋友才包含设置为“true”的installed字段。我想使用FacebookMobile.api()将其压缩为一行,但是当我尝试时,我得到了一个错误

尝试的代码:

FacebookMobile.api("me/friends?fields=installed,name", handleFriendsList);
这将导致将同一个JSON对象传递给handleFriendsList(),但我收到一个错误,抱怨我没有活动的访问令牌

错误:

message = "An active access token must be used to query information about the 
current user."
奇怪的是,我只在FacebookMobile.api()中遇到这个错误,而且只有在我要求提供installed和name字段时才会发生。当我只请求“我/朋友”而不指定“已安装”和“名称”字段时,FacebookMobile.api()工作正常


有人知道为什么会发生这种情况吗?

尝试使用
params
参数发出请求

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

在为facebook开发时请注意。他们经常更改图形API。跟踪他们的开发者页面。这就成功了!我完全忘了看params参数。谢谢你的帮助。