Facebook Graph API喜欢/评论业务页面推荐

时间:2019-02-01 14:46:59

标签: facebook facebook-graph-api facebook-like

(所有路由都相对于https://graph.facebook.com/v3.2,除非指定,默认为GET)

有效的步骤:

  1. 我从/ me / accounts获得PAGE的令牌
  2. 使用页面令牌转到// ratings?fields = open_graph_story以获取建议
  3. 获取推荐ID后,请转到/正常运行
  4. //评论-按预期工作并返回推荐评论
  5. // likes-按预期工作并返回likes

当我尝试发表评论或喜欢推荐时,问题就会开始

当我尝试推荐时:

POST /<recommendation_id>/likes

我收到一个错误:

 {
  "error": {
    "message": "Unsupported post request. Object with ID <recommendation_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": "AmsWYqiYcS+"
  }
}

当我尝试发布推荐时:

POST /<recommendation_id>/comments {message: 'some'}

我收到一个错误:

{
"error": {
    "message": "Permissions error",
    "type": "OAuthException",
    "code": 200,
    "error_subcode": 2069006,
    "is_transient": false,
    "error_user_title": "User Cannot See This App",
    "error_user_msg": "The user who owns object 2,269,569,259,406 cannot see this app.",
    "fbtrace_id": "BzRCVZFnPk"
  }
}

应用具有以下权限:publish_pages, manage_pages 应用是开发人员。模式,我拥有应用和页面。

有什么建议吗?

预先感谢, 迈克

0 个答案:

没有答案