Search code examples
facebook-graph-apifacebook-webhooksfacebook-feed

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


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.


Solution

  • 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

    enter image description here

    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.