我正在尝试使用Facebook Android SDK 3.14
获得好友列表,但获得no results
。有人指出了friends who are using my app can only be retrieved
,但我想检索my complete friend list
。谁能告诉我怎么才能做到这一点?
我使用以下代码:
<code>
Request.executeMyFriendsRequestAsync(session, new Request.GraphUserListCallback() {
@Override
public void onCompleted(List<GraphUser> users, Response response) {
// TODO Auto-generated method stub
Log.i("mustang", "response; " + response.toString());
Log.i("mustang", "UserListSize: " + users.size());
}
});
谢谢,
new Request(
session,
"/me/friends",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
}).executeAsync();
Permission:一个带有"user_friends"的用户访问令牌查看当前用户的好友需要获得许可。