无法通过Facebook图形API获取有关评论(提要)的信息

时间:2019-06-27 15:30:12

标签: facebook facebook-graph-api

场景:

  • 用户在页面上发帖
  • 我通过webhooks和 回复帖子(/ post_id / comments)
  • 用户在上回复 该评论(例如,通过评论下方的“回复”按钮进行操作)
  • 我通过webhooks检索了用户回复,但是(!)没有消息 财产
  • 我正在尝试使用API​​“ /​​ comemnt_id?fields = id,message”来获取消息,但出现错误:
{
    "error": {
        "message": "Unsupported get request. Object with ID '' 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": "F5hdECSVP91"
    }
}

我能够找出来:

  • 我代表我在facebook.com上的页面所做出的回复,并带有“由[my_name]发表评论”
  • 通过API签名做出的回复(发表评论),并带有一条消息“评论为[page_name]。只有管​​理此页面的人才能看到谁发表了评论”。用户或我在FB网站上通过API做出的任何评论以及该评论下的所有子评论都将返回该错误

所以问题是:

  • 通过API在注释下添加注释的webhooks没有消息字段
  • 并且我无法通过FB Graph API在评论下获取有关任何评论的信息

我的页面访问令牌是幸运的还是我需要做一些额外的设置步骤?

0 个答案:

没有答案