Warning : Since version 10.0 of the Facebook API, the feed webhook is no longer working ! The following guide will only work if you’re using version 9.0 of the Facebook API. There’s an open ticket here for that problem, don’t hesitate to ask Facebook to solve it as soon as possible.
In this guide, we’ll see how to add the WebHooks Product to get a Facebook paged feed. However, before reading this guide, make sure that you connect your Facebook Page to your Facebook App.
To this end, you can read our Link a Facebook Page to a Facebook App guide.
1 – Use the WebHooks to get a Facebook Page Feed
Now that your Facebook App and Page are linked, it is time to add the WebHooks product.
Go to the Facebook Developer’s Apps page. Select your App to open it. In the next page, go to the “Add Products to Your App” section and select the Webhooks product and click on Set Up.
On the new screen, select Page in the drop down menu and click on Subscribe to this object.
As a result, you will see a new popup window with 2 fields to set :
These 2 values come from your API. Put them here and click Verify and Save.
For WooRewards Users
If you use WooRewards, you will find these values in WooRewards → Features → Social Media → Facebook.
When this is done, go down in the list of options you can subscribe to. Find the Feed option and click on Subscribe.
Finally, your App is ready. It’s now time to install the App on your Page and give it access to the feed webhook.
2 – Install your App on your Facebook Page
If you want to refer to the original Facebook Documentation, you will find it here.
In addition to setting up your app, you need to install it on your Facebook page. However, this is the most complicated part of the process, so we will see it step by step. Don’t hesitate to start again from the beginning if you missed a step.
First, you need to go to the Facebook’s Graph API Explorer : https://developers.facebook.com/tools/explorer
On that page you’ll have to perform several tasks.
First, on the right menu, in the Facebook App field, select the App you created earlier.
Then, in the User or Page field, select Get User Access Token.
It will open a popup prompting you to log into your Facebook account and give authorizations. Validate the popup.
You know have to select different authorizations that needs to be given from the page to your app and generate the access token.
Here, select the following authorizations :
When you click on the Generate Access Token button, a new popup will appear. And, like before, you will have to validate the popup fields.
Finally, there is one last step to perform. In the User or Page field, change the token and select your Page Token instead of the User Token.
That’s over, you successfully set up your Webhooks product.
Now, let’s verify that your setup is correct and that the feed subscription is indeed active. On the top request field, remove the
me?fields=id,name query and replace it with
<your facebook page id>/subscribed_apps
You should have saved your Facebook Page ID somewhere if you followed the entire guide. Otherwise, read the following guide : Link your Facebook page to an app to know how to get it.
Finally, click on Submit. If everything was set up properly, you should see the following message :
That’s all for this guide. Thank you for reading.
Check our WordPress plugins
We create very powerful plugins for WordPress and WooCommerce. You should check them and discover what they can add to your website.