使用相同的Parse应用程序查找Facebook好友



我需要找到用户,我的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不再返回所有朋友,您可以在更改日志中了解更多信息。

最新更新