如何让Android中的Facebook好友列表 [英] how to get facebook friends list in android
问题描述
我有user_friends权限时,用户认证,我尝试了很多摆脱Facebook好友列表
i have user_friends permission when user authenticates and i tried a lot to get friends list from facebook
这是我的电话
/* make the API call */
new Request(
session,
"/me/taggable_friends" /*"/me/friendlists"*/ /*"/"+id+"/friends"*/ /*"/me/friends"*/,
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
Log.d(TAG, "friends list request response:" + response.getRawResponse());
}
}
).executeAsync();
我有朋友只列出与我创建Facebook的ID账号
如果试图用另一种新的帐户它只是给计数但没有数据
i got friends list only with the account i have created the facebook id if tried with another new account it just giving the count but NO DATA
任何一个可以请帮我
推荐答案
developers.facebook.com/文档/应用/更新日志:朋友列表现在只返回朋友谁也使用你的应用程序:好友列表通过/我的/朋友端点现在仅限于已授权您的应用程序的朋友列表中返回的
developers.facebook.com/docs/apps/changelog : "Friend list now only returns friends who also use your app: The list of friends returned via the /me/friends endpoint is now limited to the list of friends that have authorized your app"
现在你可以设置 Settings.setPlatformCompatibilityEnabled(真);
,它会工作,但很快就会Fb的禁用
Right now you can set Settings.setPlatformCompatibilityEnabled(true);
and it will work but soon Fb will disable that.
这篇关于如何让Android中的Facebook好友列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!