我是我的测试应用和测试页面的管理员。
现在我正在做一个通过 webhook 实时获取页面提要的功能,只是在开发模式下。
当我单击应用程序仪表板上的测试按钮时,它已发送到我的 webhook。但是当我评论或喜欢...帖子时,即使我订阅了提要 webhook,facebook 也不会发送。
使用 Messages,它已成功发送,但 Feed 没有。
我要求 facebook 支持,所以他们说:
"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. In order to receive feed webhooks, your app needs to be live and has to go through app review for necessary permissions."
我知道即使它处于开发模式,我也无法从 facebook 获取数据。
那么我怎样才能获得facebook返回的数据来开发,测试......开发模式下的应用程序。
非常感谢。
最佳答案
在没有应用审查的情况下无法运行此服务,因为无法在开发应用中向 (test-) 用户添加“mange_pages”权限。同时,无法将 testapp 转为实时模式。反之亦然,唯一的解决方案是应用审查以从特定 (test-) 页面获取信息。
GET graph.facebook.com/app-id/subscriptions
,如果您的应用成功订阅了“页面信息”。 Graph API Documentation 2018 年 11 月 18 日更新
如果您转到 https://developers.facebook.com 上的应用程序仪表板中的 Webhook -> 页面您会注意到,开发模式下的 Webhook 不起作用。
关于facebook-graph-api - Facebook API 页面提要没有向我的 webhook 发送信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51018867/