facebook-graph-api - Facebook API 页面提要没有向我的 webhook 发送信息?

标签 facebook-graph-api facebook-webhooks facebook-feed

我是我的测试应用和测试页面的管理员。

现在我正在做一个通过 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-) 页面获取信息。

  • 对于实时测试,我建议创建一个 testuser并订阅有关“用户”的信息以测试您的 webhook。
  • 您可以咨询 GET graph.facebook.com/app-id/subscriptions ,如果您的应用成功订阅了“页面信息”。 Graph API Documentation
  • 正如您已经提到的,您还可以将“页面信息”测试调用发送到您的端点。

  • 2018 年 11 月 18 日更新

    enter image description here

    如果您转到 https://developers.facebook.com 上的应用程序仪表板中的 Webhook -> 页面您会注意到,开发模式下的 Webhook 不起作用。

    关于facebook-graph-api - Facebook API 页面提要没有向我的 webhook 发送信息?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51018867/

    相关文章:

    ios - iOS 中的新闻提要检索

    java - "Cannot resolve symbol ` Facebook Graph API 请求 `"错误

    iphone - Facebook:获取特定日期的Facebook消息?

    facebook - 为什么 Instagram Graph API webhook 不起作用

    Facebook 主题标签提要

    facebook - 是否可以将 Facebook 提要发送到我属于但不拥有的封闭组?

    php - 在使用 PHP SDK 以编程方式创建事件时,如何显示 field map ?

    facebook - 从 Facebook 验证 X-Hub-Signature

    facebook-webhooks - 托管事件的 Webhook?

    javascript - Facebook 提要对话框不起作用