Facebook API -好友列表空结果



我使用Facebook phonegap插件为我的移动应用程序项目。问题是我得到一个空的结果为friendlist

js

facebookConnectPlugin.api("/me/friends?fields=picture,name", ["public_profile", "user_friends"],function(
        response) {
        console.log(JSON.stringify(response.data))
    }, function(response) {
        console.log(JSON.stringify(response))
    });
结果

2014-08-10 01:41:29.700 TypeOut[590:60b] new permissions (
    installed,
    "public_profile",
    email,
    "user_friends"
)
2014-08-10 01:41:29.701 TypeOut[590:60b] Graph Path = /me/friends?fields=picture,name
2014-08-10 01:41:30.292 TypeOut[590:60b] []

我该如何解决这个问题?

它只返回同样使用该应用程序的好友

如果你的应用是一款游戏,那就使用请求对话框。如果你的应用不是游戏,而是手机应用,那就使用Message Dialog。

最新更新