Facebook API页面提要没有将信息发送到我的Webhook? [英] Facebook API page feed didn't send information to my webhook?

查看:188
本文介绍了Facebook API页面提要没有将信息发送到我的Webhook?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是我的测试应用程序和测试页面的管理员.

I'm admin of my test app, and my test page.

现在我正在执行一个功能,仅在开发模式下才通过webhook实时获取页面的提要.

Now I'm doing a function get page's feed realtime by webhook, just only on development mode.

当我单击App仪表板上的测试按钮时,它已发送到我的Webhook.但是当我发表评论或喜欢...帖子时,即使我订阅了提要webhook,facebook也不会发送. 使用邮件,它已成功发送,但Feed未能成功发送.

When I click test button on App's Dashboard, It has been sent to my webhook. But when I comment or like ... the post, facebook doesn't send even though I subscribed feed webhook. With Messages, it has been sent successfully, but Feed doesn't.

我要求Facebook支持,所以他们说:

I ask facebook support, so they said that:

"应用程序将只能接收从 开发中的应用仪表板.没有生产数据, 包括应用程序管理员,开发人员和测试人员的 交付,除非该应用程序是实时的.为了接收提要Webhook, 您的应用需要实时运行,并且必须经过应用审查 必要的权限."

"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返回的数据以在开发模式下开发,测试...应用程序.

I understand that I can not get data from facebook even though it is under development mode. So how can I get data returned by facebook to develop, test... apps in development mode.

非常感谢.

推荐答案

未经应用审查即无法运行此服务,因为无法将'mange_pages'权限添加到(测试-)用户.同时,不可能将testapp转换为实时模式.反之亦然,唯一的解决方案是应用程序审核,以从特定的应用程序中获取信息(

It is not possible to run this service without an app review, since it is not possible to add the 'mange_pages' permission to a (test-)user within a development app. At the same time it is not possible to turn a testapp into live-mode. As the same is true vice versa the only solution is the app review to get information from a specific (test-)page.

  • For live testing i suggest to create a testuser and subscribe for information about the "user" to test your webhook.

如果您的应用已成功订阅页面信息",则可以使用GET graph.facebook.com/app-id/subscriptions进行检查. 图形API文档

You can check with GET graph.facebook.com/app-id/subscriptions, if your app is successfully subscribed to "page information". Graph API Documentation

正如您已经提到的,您还可以将页面信息"测试调用发送到端点.

As you already mentioned you can also send "page information" test calls to your endpoint.

更新2018年11月18日

如果您访问应用程序仪表板上的Webhook->页面,位于 https://developers.facebook.com 您会注意到,开发模式下的Webhooks无法正常工作.

If you go to Webhook -> pages in your App Dashboard on https://developers.facebook.com you are able to notice, that Webhooks in dev mode do not work.

这篇关于Facebook API页面提要没有将信息发送到我的Webhook?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆