我需要找到用户,我的Facebook好友与使用我的应用程序(我有一个Android和Web版本)。我可以在Android上使用以下代码完成此操作:
https://parse.com/questions/how-can-i-find-parse-users-that-are-facebook-friends-with-the-current-user但是没有提到Javascript的方法。
我从其他帖子中看到这样做一个FB api调用:
FB.api('/me/friends?fields=installed', function(response) {
var friends = response;
console.log(friends);
});
}
但是由于某种原因,它只返回了我的7个朋友(即使我只是搜索/me/friends时也是如此)。我不知道为什么它没有返回我的整个friendslist。
您不需要fields=installed
参数,/me/friends
也将返回授权您的应用程序的朋友。由于v2.0不再返回所有朋友,您可以在更改日志中了解更多信息。