我正在尝试获取登录到我的应用程序的用户的所有好友。
我不能使用此API [friends]:
https://developers.facebook.com/docs/graph-api/reference/v2.0/user/friends
因为这个API只返回已经使用该请求的应用的好友。
因此,我找到了这个API [friendlist]:
https://developers.facebook.com/docs/graph-api/reference/v2.0/friendlist
根据这个答案,我得到了好友列表。
但是当我尝试获取好友列表成员时,我得到的是空列表:
new Request(
session,
"/2692926356774/members",
null,
HttpMethod.GET,
new Request.Callback()
{
public void onCompleted(Response response)
{
/* handle the result */
Log.e(LOG_TAG,"Members: " + response.toString());
}
}
).executeAsync();
2692926356774
是我的熟人列表id
,我尝试了几个其他的id,结果都一样。