Facebook的好友列表返回空 [英] Facebook friends list returns empty
本文介绍了Facebook的好友列表返回空的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用我试图检索用户的好友列表。
请问在权限被授予活动user_friends许可和检查。
问题是,好友列表随时返回空。
In my application I'm trying to retrieve the user's friends list. I ask for user_friends permission and check in the activity the the permission is granted. The problem is that the friends list returns empty at any time.
我用下面的code:
Request request = Request.newMyFriendsRequest(_session, new Request.GraphUserListCallback() {
@Override
public void onCompleted(List<GraphUser> listFacebookFriends, Response response) {
Toast.makeText(MainActivity.this, ""+listFacebookFriends.size(), Toast.LENGTH_LONG).show();
Log.d(TAG, response.toString());
}
});
request.executeAsync();
和返回的响应是:
{Response: responseCode: 200, graphObject: GraphObject{graphObjectClass=GraphObject, state={"data":[]}}, error: null, isFromCache:false}
可以是什么问题?
What can be the problem?
推荐答案
我假设你2014年4月30日,这意味着您正在使用的API的2.0版以后创建的应用程序。这意味着,只有那些使用的应用程序的朋友将得到恢复。
I assume you created your app after 4/30/2014 which means that you are using v2.0 of the API. That means that only friends that are using the app will get returned.
这篇关于Facebook的好友列表返回空的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文