我正在尝试使用访问令牌获取特定用户的Facebook好友列表 .
https://developers.facebook.com/docs/graph-api/reference/friend-list/
但如何获得 friend-list-id
?
到目前为止,这是我能够得到的一个例子 .
https://graph.facebook.com/fbID/friends?access_token=appid|appsecret
我正在尝试使用访问令牌获取特定用户的Facebook好友列表 .
https://developers.facebook.com/docs/graph-api/reference/friend-list/
但如何获得 friend-list-id
?
到目前为止,这是我能够得到的一个例子 .
https://graph.facebook.com/fbID/friends?access_token=appid|appsecret
1 回答
我想你想在登录后使用
me/friends
. 响应将是一个你可以循环的数组,所以你可以获得每个Userid
属性,并根据需要使用id对FB.api()
进行更多调用 .这可能是你想要做的: