【问题标题】:Get comment on owned page在拥有的页面上获得评论
【发布时间】:2019-10-07 13:49:32
【问题描述】:

我在 Facebook 上拥有一个页面。我的目的是收集所有的 cmets、用户在我的页面中的回复以及评论的线程 ID。

我已经阅读了 Facebook 的 Graph API 的文档,它描述了:

Page owned Comments and Replies — For any comments or replies owned by (on) a Page, you must use a Page access token if you want User information to be included in the response

我很困惑,我有访问令牌,但 API 端点看起来像:

GET /v4.0/{comment-id} HTTP/1.1

这是否意味着我必须指定一个评论 ID 才能获得它?请你帮帮我。谢谢。

【问题讨论】:

    标签: python facebook facebook-page


    【解决方案1】:

    这将是正确的端点:GET /v4.0/{post-id}/cmets HTTP/1.1

    (https://developers.facebook.com/docs/graph-api/reference/post/)

    子cmets:GET /v4.0/{comment-id}/cmets HTTP/1.1

    (Facebook graph API: get the "subcomments" in a tree of a discussion)

    【讨论】:

    • 嗨。感谢您抽出时间来帮助我。根据您的回答,这是否意味着我不需要发布页面 ID 来发布它?或者 Facebook 可以通过访问令牌确定页面 ID?谢谢。
    • 如果您拥有该页面,则无论如何都应该使用页面令牌。但是由于您想获取 cmets,因此您可能知道帖子 ID - 并且帖子 ID 与页面相关联。如果您也想获取所有帖子,请使用带有此端点的页面令牌:/me/posts
    • 太棒了!非常感谢。让我试试你的解决方案。
    猜你喜欢
    • 1970-01-01
    • 2022-12-09
    • 2016-07-25
    • 1970-01-01
    • 2012-06-30
    • 1970-01-01
    • 1970-01-01
    • 2012-01-09
    • 2021-10-19
    相关资源
    最近更新 更多