我已采取的步骤:
我创建了一个状态为“开发中”的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的响应为{成功:正确}
{
"data": [
{
"category": "Business",
"link": "https://example.com/",
"name": "Application Name",
"id": "<APPID>",
"subscribed_fields": [
"feed"
]
}
]
}
现在,当我在“测试页”上发布喜欢的内容并发表评论时,它不会收到任何更新。我想念什么?
答案 0 :(得分:0)
您需要提交您的应用以供审核。当Facebook接受您的评论时,网络挂钩将开始在您的页面上运行(如果该页面已订阅您的应用程序)。