0

我已采取的步骤:

我创建了一个状态为“开发中”的 Facebook 应用

创建 Webhook,订阅 Page>Feed。APPID/订阅响应是

{
  "data": [
    {
      "object": "page",
      "callback_url": "https://example.com/webhook/",
      "active": true,
      "fields": [
        {
          "name": "feed",
          "version": "v3.2"
        }
      ]
    }
  ]
}

我可以从仪表板接收示例提要字段更新!

Dashboard webhook page shows red warning "Applications will only be able to receive test webhooks sent from the app dashboard while they are in development. No production data, including that of app admins, developers, and testers, will be delivered unless the app is live."

创建测试用户并授予权限 manage_pages、publish_pages

订阅了测试用户创建的测试页面。TESTPAGEID/subscribed_apps 响应为 {success: true}

{
  "data": [
    {
      "category": "Business",
      "link": "https://example.com/",
      "name": "Application Name",
      "id": "<APPID>",
      "subscribed_fields": [
        "feed"
      ]
    }
  ]
}

现在,当我在测试页上发帖、点赞和评论时,它不会收到任何更新。我错过了什么?

4

1 回答 1

0

您需要提交您的应用以供审核。当 Facebook 接受您的评论时,webhook 将开始在您的页面上工作(如果该页面订阅了您的应用程序)。

于 2018-12-03T08:27:29.253 回答