【问题标题】:Get Facebook page rating comments获取 Facebook 页面评级评论
【发布时间】:2022-12-09 14:51:58
【问题描述】:

我想从页面评级中检索 cmets。

我正在从端点GET https://graph.facebook.com/v15.0/21[...]58/ratings?fields=created_time,has_rating,has_review,open_graph_story,rating,recommendation_type,review_text,reviewer 获取页面评级

我得到一组评级对象,例如这个评级:

{
  "created_time": "2021-11-06T04:20:20+0000",
  "has_rating": false,
  "has_review": true,
  "open_graph_story": {
    "id": "21[...]58",
    "message": "Lorem ipsum",
    "start_time": "2021-12-26T21:14:02+0000",
    "type": "sellers.rates",
    "data": {
      "recommendation_type": "positive",
      "review_text": "Lorem ipsum",
      "is_hidden": false,
      "language": "fr",
      "seller": {
        "id": "54[...]12",
        "title": "LOREM",
        "type": "place",
        "url": "https://facebook.com/lorem"
      },
      "has_review_update": false
    }
  },
  "recommendation_type": "positive",
  "review_text": "Lorem ipsum",
  "reviewer": {
    "name": "John Doe",
    "id": "56[...]60"
  }
}

然后,我试图通过请求 GET https://graph.facebook.com/v15.0/54[...]12_21[...]58/comments 从这篇评论中获取 cmets

但我收到此错误:

{
  "error": {
    "message": "Unsupported get request. Object with ID ' 54[...]12_21[...]58' 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": "Av[...]fN"
  }
}

另一方面,这个请求在“经典”帖子中运行良好。

这是否意味着评级不被视为帖子? 我怎样才能从评级中得到削减?

【问题讨论】:

    标签: facebook facebook-graph-api


    【解决方案1】:

    https://developers.facebook.com/docs/graph-api/reference/recommendation/

    Graph API 文档没有针对单个建议提及任何 cmets 端点/边缘,因此我认为不可能获得它们。

    将文档与发布文档的页面进行比较:https://developers.facebook.com/docs/graph-api/reference/page-post/#edges

    【讨论】:

      猜你喜欢
      • 2016-07-25
      • 2021-10-19
      • 1970-01-01
      • 2014-05-24
      • 2013-06-23
      • 1970-01-01
      • 1970-01-01
      • 2016-03-21
      • 1970-01-01
      相关资源
      最近更新 更多