Android的Facebook的friendsList数组为null,但FrindsList计数显示 [英] Android Facebook friendsList array is null but FrindsList count is showing

查看:205
本文介绍了Android的Facebook的friendsList数组为null,但FrindsList计数显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的权限:

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的好友列表。但我发现下面的响应。

This above function I'm calling to get facebook friends list. but I'm getting following response.

{"summary":{"total_count":342},"data":[]}

我怀疑是我得到的总数量。但为什么我不能得到数据表?请人帮我找出我的错误。在此先感谢。

My doubt is I'm getting total count. but why can't I get data list ? Please someone help me to Identify my mistake. Thanks in Advance.

推荐答案

这是不可能的+,只有应用程序2014年4月的月底前创建使用图形API的1.0版,以获得所有的朋友V2.0。它只会工作,直到2015年四月见的changelog结束有关版本的更多信息:的https:/ /developers.facebook.com/docs/apps/changelog

It is not possible to get ALL friends with v2.0+, only with Apps created before end of April 2014 by using v1.0 of the Graph API. And it will only work until end of April 2015. See changelog for more information about the versions: https://developers.facebook.com/docs/apps/changelog

还有invitable_friends和taggable_friends虽然,但他们留给应用程序在facebook.com上:

There is also invitable_friends and taggable_friends though, but they are reserved for Apps on facebook.com:

  • https://developers.facebook.com/docs/graph-api/reference/v2.1/user/invitable_friends
  • https://developers.facebook.com/docs/graph-api/reference/v2.1/user/taggable_friends

这也可能是有趣的邀请的朋友:的https://developers.facebook .COM /文档/游戏/请求/ 2.1

This may also be interesting for inviting friends: https://developers.facebook.com/docs/games/requests/v2.1

Here's另一个线程在那里,这是一个非常详细地解释:<一href="http://stackoverflow.com/questions/23417356/facebook-graph-api-v2-0-me-friends-returns-empty-or-only-friends-who-also-use-m">Facebook图形API V2.0我的/朋友返回空,或者也可以使用我的应用谁只是朋友

Here´s another thread where this is explained in a very detailed way: Facebook Graph Api v2.0 me/friends returns empty, or only friends who also use my app

这篇关于Android的Facebook的friendsList数组为null,但FrindsList计数显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆