Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 908
kevin Avatar asked Jun 25 '18 08:06

kevin


People also ask

What happens if a webhook fails?

If an initial webhook fails, and the error response code was not in the 400 range, it will go back into the queue of events and retry two subsequent times! Additionally, if the response takes longer than 30 seconds, Merge will also try to send the webhook up to two more times.

Does Facebook use Webhooks?

Webhooks allows you to receive real-time HTTP notifications of changes to specific objects in the Facebook Social Graph. For example, we could send you a notification when any of your app Users change their email address or whenever they comment on your Facebook Page.

Does Facebook allow API?

The Facebook API allows your app — and your app users — to access and manage content in their Facebook Group. With this API, you can let people publish content from your app to their Group.

Where can I find the API for Facebook pages?

The full details can be found in the Pages API Documentation. Don’t forget you need a token from an app user who owns or can perform a required task on the page. There are two types provided by Facebook – Video API and Live Video API. Both of these post videos on a page, group or event administered by an app user.

What is a webhook API?

They are a type of API and hence are sometimes referred to as webhook API. For it to work, you have to feed in the webhook URL of the app that needs the data, into the app sending the data.

What do the Facebook API error codes mean?

But the requests made sometimes result in various Facebook API error responses with the respective error codes. For example, Facebook API error 400 – Bad request – means that a query is no longer suppoted and you need a new access token to be generated. Here are some other:

What is Facebook Graph API and how do I use it?

You’re going to have to approve the access of the app to your page. The main product is the Graph API, that serves as a base for all other kinds of Facebook APIs, They are in essence extensions of Graph API, and all of the Facebook products interact with it in some way.


Video Answer


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

like image 55
L.Lukas Avatar answered Oct 17 '22 12:10

L.Lukas


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.

like image 29
Remy Burney Avatar answered Oct 17 '22 11:10

Remy Burney