Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Facebook GET friends API调用不返回除同一应用程序上的好友以外的任何好友_Facebook_Request - Fatal编程技术网

Facebook GET friends API调用不返回除同一应用程序上的好友以外的任何好友

Facebook GET friends API调用不返回除同一应用程序上的好友以外的任何好友,facebook,request,Facebook,Request,在我们的游戏中,我们一直使用下面的代码块来检索未玩过我们游戏的用户的朋友并对他们执行操作 FB.api '/me/friends?fields=installed,name,picture', (friendsList) -> if friendsList.error? // ... reject return friendsList = _(friendsList.data).filter (friend) -> not friend.installed

在我们的游戏中,我们一直使用下面的代码块来检索未玩过我们游戏的用户的朋友并对他们执行操作

FB.api '/me/friends?fields=installed,name,picture', (friendsList) ->
  if friendsList.error?
    // ... reject
    return
  friendsList = _(friendsList.data).filter (friend) -> not friend.installed
  // ... do something with the friends list
直到最近(在过去的一周内,今天才抓到),当被返回的friendsList在被过滤之前突然有了一个长度,并且只包括我唯一一个也安装了该应用程序并且正在玩它的朋友。我们在数据上应用的过滤器不会导致这种情况,因为数据预过滤器只包括这一个朋友。控制台没有抛出任何错误,朋友们的回应不再包括任何人,除了据我所知也在玩该应用的人。我肯定也有朋友不阻止应用程序在结果中返回它们,所以至少应该有一些结果


发生什么事了?Facebook最近有没有改变他们的API来处理这个请求?我最近没有找到任何关于API更新的文档,所以我真的很困惑为什么这段代码不再像预期的那样运行。

我的API也有同样的问题。我认为facebook将不再允许检索以前没有使用过该应用程序的朋友。

奇怪的是,他们会在没有记录的情况下做出这样的更改。我以为这就是为什么?看来问题已经解决了。你还有问题吗?