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.
2
Answers
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 DocumentationAs 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.
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.