我正在尝试使用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());
}
});
谢谢,
答案 0 :(得分:0)
new Request(
session,
"/me/friends",
null,
HttpMethod.GET,
new Request.Callback() {
public void onCompleted(Response response) {
/* handle the result */
}
}).executeAsync();
权限:具有&#34; user_friends&#34;的用户访问令牌 需要获得许可才能查看当前此人的朋友。