【问题标题】:Facebook API - get group membersFacebook API - 获取群组成员
【发布时间】:2018-04-11 02:25:04
【问题描述】:

我想使用 Facebook 的 Graph API 从公共群组中获取成员列表

公共组: https://www.facebook.com/groups/1555326074717022

我在这里生成了一个用户访问令牌: https://developers.facebook.com/tools/explorer

我在 GET 查询中输入了这个:

1555326074717022/members

但我得到错误

"message": "不支持获取请求。ID 为 '1555326074717022' 的对象不存在,由于缺少权限而无法加载,或者不支持此操作。请阅读 https://developers.facebook.com/docs/graph-api 的 Graph API 文档",

不确定我做错了什么 - 如果您不是管理员,是否有可能获取公共组数据?

【问题讨论】:

  • 面临同样的问题。之前一切正常。

标签: facebook facebook-graph-api


【解决方案1】:

https://developers.facebook.com/blog/post/2018/04/04/facebook-api-platform-product-changes

今天开始测试我们更强大的流程,新流程应该会在几周后恢复,但目前正在访问事件和 Groups API 的应用程序今天将失去访问权限。

还有:

已弃用:/members 和 /admins 端点已被删除。

【讨论】:

  • 该死的剑桥分析!毁了每个人的东西:(
【解决方案2】:

https://developers.facebook.com/docs/graph-api/reference/user/groups 用于 Graph API 版本 v3.1 似乎表明如果应用程序已通过应用程序审查或应用程序处于开发阶段,则可能有解决方案。

https://developers.facebook.com/docs/graph-api/reference/v3.1/group 表示具有权限的另一种可能性:

groups_access_member_info — Enables your app to receive member-related data on group content.
publish_to_group — Enables your app to post content into a group on behalf of a user.
user_managed_groups — Enables your app to read the Groups of which a person is an admin.

话虽如此,user_managed_groups 权限不在可以请求的权限列表中,即使在使用测试应用程序的开发模式下,我也会收到一条错误消息:

  English Quiz - Test1
Ethan 100029439245680

==== Query
  curl -i -X GET \
   "https://graph.facebook.com/v3.1/100029439245680/groups?access_token=<access token sanitized>"
==== Access Token Info

    {
    "perms": [
      "user_friends",
      "groups_access_member_info",
      "public_profile",
      "basic_info"
    ],
    "user_id": 322852501618049,
    "app_id": 867918616743637
  }
==== Parameters
- Query Parameters


  {}
- POST Parameters


  {}
==== Response
  {
    "error": {
      "message": "Unsupported get request. Object with ID '100029439245680' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api",
      "type": "GraphMethodException",
      "code": 100,
      "error_subcode": 33,
      "fbtrace_id": "EvrL0yxzs/q"
    },
    "__debug__": {}
  }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-01-03
    • 2018-12-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-08-27
    • 1970-01-01
    相关资源
    最近更新 更多