首页 > 解决方案 > Facebook Graph API 点赞/评论业务页面推荐

问题描述

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

行之有效的步骤:

  1. 我从这里 /me/accounts 获得 PAGE 的令牌
  2. 使用页面令牌转到 //ratings?fields=open_graph_story 以获取推荐
  3. 获得推荐 ID 后转到 / 它工作正常
  4. //comments - 按预期工作并返回推荐评论
  5. //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 应用程序是开发人员。模式,我拥有应用程序和页面。

有什么建议么?

在此先感谢,迈克

标签: facebookfacebook-graph-apifacebook-like

解决方案


推荐阅读