Facebook API page feed didn't send information to my webhook?

吃可爱长大的小学妹 提交于 2019-12-09 06:17:31

问题


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

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

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.

I ask facebook support, so they said that:

"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."

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.

Thanks so much.


回答1:


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.

  • 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.

UPDATE 18th Nov 2018

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.




回答2:


I've submitted a Bug report to Facebook for this issue, as there is no proper solution. You can check it at : https://developers.facebook.com/support/bugs/1570460936387604/

I also don't get the fact that you can't test webhooks in dev mode, and you can't do the app review because you can't develop your app and show them for review. Just a chicken and egg issue.



来源:https://stackoverflow.com/questions/51018867/facebook-api-page-feed-didnt-send-information-to-my-webhook

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!