Facebook API好友列表为空

时间:2014-05-07 19:51:53

标签: facebook-graph-api

在图表浏览器中:

https://graph.facebook.com/12345?metadata=1

结果:

{
  "id": "12345", 
  "name": "list_name", 
  "list_type": "user_created", 
  "metadata": {
    "connections": {
      "members": "https://graph.facebook.com/12345/members"
    }, 
    "type": "friendlist"
  }
}

但是当我尝试https://graph.facebook.com/12345/members时,我得到了

{
  "data": [
  ]
}

即使我知道该名单上有人。每个清单都会发生同样的事情。

2 个答案:

答案 0 :(得分:0)

你有相应的许可吗?

我想你需要read_friendlists这个权限:https://developers.facebook.com/docs/graph-api/reference/v2.0/friendlist/members

答案 1 :(得分:0)

关于v 2.0的更改日志,您只能看到也在使用该应用程序的朋友(如果您有请求的朋友列表权限范围): https://developers.facebook.com/docs/apps/changelog

的解决方案: a)使用旧api版本1.0至2015年4月30日 b)检查可标记的朋友: https://developers.facebook.com/docs/graph-api/reference/v2.0/user/taggable_friends

相关问题