Android Facebook friendsList数组为空,但显示FrindsList计数
我的权限:Android Facebook friendsList数组为空,但显示FrindsList计数,android,facebook-graph-api,android-facebook,Android,Facebook Graph Api,Android Facebook,我的权限: facebookLoginButton.setReadPermissions( Arrays.asList("public_profile", "user_friends","read_friendlists")); 回调函数: new Request(Session.getActiveSession(), "/" + USER_ID + "/friends", null, HttpMethod.GET, new Request.Callback() {
facebookLoginButton.setReadPermissions(
Arrays.asList("public_profile", "user_friends","read_friendlists"));
回调函数:
new Request(Session.getActiveSession(), "/" + USER_ID + "/friends", null, HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
showLogInfo("###########" + response.getRawResponse());
}
}).executeAsync();
我调用上述函数获取facebook好友列表。但我得到了如下回应
{"summary":{"total_count":342},"data":[]}
我的怀疑是我得到了总数。但为什么我不能得到数据列表?请有人帮我找出我的错误。提前感谢。仅使用Graph API的v1.0版本在2014年4月底之前创建的应用程序,不可能通过v2.0+获得所有好友。它将只在2015年4月底之前有效。有关版本的更多信息,请参阅更改日志: 虽然也有不可侵犯的朋友和可标记的朋友,但它们是为facebook.com上的应用程序保留的:
下面是另一个线程,它以非常详细的方式解释了这一点:新的facebook graph api不允许访问好友列表,您只能获取计数和标记的好友 检查此链接,其中清楚地提到
- 这将只返回使用(通过Facebook登录)该应用程序发出请求的所有朋友
- 如果此人的朋友拒绝用户的朋友权限,该朋友将不会出现在此人的朋友列表中