I want to configure Facebook webhooks for the application I'm developing.
What I did so far was:
Now, when I'm querying for page subscriptions I get the response:
{
"data": [
{
"object": "page",
"callback_url": "CALLBACK_URL",
"fields": [
"feed"
],
"active": true
}
]
}
which seems to be valid.
What should I do next? How to start listening from feed of a particular page?
Webhooks allows you to receive real-time HTTP notifications of changes to specific objects in the Facebook Social Graph.
You can install webhooks on an organization or on a specific repository. To set up a webhook, go to the settings page of your repository or organization. From there, click Webhooks, then Add webhook. Alternatively, you can choose to build and manage a webhook through the Webhooks API.
In the "Facebook Login" tab under your app, enter all valid callback URL's, such as http://localhost/callback, http://productionUrl/callback, etc. If you don't see "Facebook Login" tab under your app, click "Add Product-> Facebook Login->Get Started" Enter the Valid Callback Urls -> Save changes. Save this answer.
Here is the entire configuration for Receiving API Updates in Real Time with Webhooks :
Facebook Page ID
at the very bottom.Facebook App ID
described in the above point.Subscribe you Facebook App to your Facebook Page. To do that open Graph API Explorer.
Make sure you selected your particular application.
Access Token
field.Make POST request to the particular URL:
/YOUR_PAGE_ID/subscribed_apps
That's it! With these steps you should have your server application up, running and listening on all events you declared!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With