我正在尝试获取登录到我的应用程序的用户的所有朋友。
我不能使用这个 API [朋友]:
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
是我的Acquaintances list id
,我尝试了其他几个具有相同结果的 id。