In this section, we will look at how you can integrate WordPress with Facebook and automatically share newly created WordPress articles on the Facebook page of your choice.
This automation requires a one-time setup, for which we will use Pabbly Connect.
We will first link WordPress with Pabbly Connect to capture the post, then link Pabbly Connect with Facebook and share the captured posts on Facebook.
Steps to Automatically Share WordPress Articles on Facebook
1. Sign In / Sign Up to Pabbly Connect and Create a Workflow
2. Setup WordPress as the Trigger App to Capture Posts
3. Setup Facebook Pages as the Action App to Post Articles
Step 1:- Sign In / Sign Up to Pabbly Connect and Create a Workflow
A. Sign In / Sign Up
To begin this process, visit Pabbly Connect and create your account by clicking on the ‘Sign Up Free’ button. You can also click on Sign In if you already have an account.
Click on the Pabbly Connect ‘Access Now’ button
B. Create Workflow
To create a new workflow, click the ‘Create Workflow’ button.
Name your workflow, and click on ‘Create’.
Step 2:- Setup WordPress as the Trigger App to Capture Posts
We will now look at the steps to establish a link between WordPress and Pabbly Connect. This will help us fetch newly created posts from WordPress.
A. Trigger App
Trigger allows us to choose the application that will receive the data for Pabbly Connect. In our case, it would be WordPress.
Choose ‘WordPress’ as the Trigger App and select ‘New Post Published’ as a Trigger Event.
B. Webhook URL
A new Webhook URL will get generated. You will use this Webhook URL to create a connection with your WordPress account. Copy the Webhook URL.
As soon as you Copy the Webhook URL, Pabbly Connect will start looking to capture data from WordPress, as indicated by the rotating Waiting For Webhook Response button.
C. Connect WordPress Account
To connect with your WordPress account, go to your WordPress dashboard and click on ‘Settings’ > ‘WP Webhooks’
Click on ‘Send Data’, scroll down, select ‘Post created’ and click on ‘Add Webhook URL’. A dialogue box will appear asking you for Webhook Name and Webhook URL.
Give a Name, paste the Webhook URL we copied earlier, and click on ‘Add for post_create’.
Click the 3 dots, select ‘Post’ as Post Type, ‘Published’ as Post Status, and click on ‘Save Settings’.
C. Test Connection
To test the established connection, we will create and publish a post.
Expand Response Received, under which the data of your last post must be visible, thus confirming the established connection.
We have established a link between WordPress and Pabbly Connect. Pabbly Connect will now automatically capture all your WordPress posts.
Step 3:- Setup Facebook Pages as the Action App to Post Articles
Action allows us to choose the application that will get executed by the workflow trigger.
We essentially want to post the captured WordPress articles on Facebook. Thus, Facebook Pages will be our Action App.
A. Action App
Choose ‘Facebook Pages’ as your Action App, select ‘Create Page Post’ as an Action Event, and click on ‘Connect’.
B. Connect Facebook Account
To connect with your Facebook account, select ‘Add New Connection’ and click on ‘Connect With Facebook Pages’. Also, grant the authorization.
Select the Page on which you want to post the articles.
C. Map the Message
Now that you have connected your Facebook account, all you need is to map the message to be posted from the step above. Mapping ensures our data remains dynamic and changes as per the received responses.
Map the Message to be posted from the step above.
Similarly, map the Link URL, and click on ‘Save & Send Test Request’.
The moment you click on Save & Send Test Request, the article will be posted on your Facebook Page.
Our automation is complete. We have successfully integrated WordPress with Facebook. Each time you make a new WordPress article, it will automatically be posted on your Facebook page.
You can copy this entire workflow by clicking this link.
Sign Up for a free Pabbly Connect account, and start automating your business
Subscribe to our Youtube Channel for more such automation
For any other queries, visit our forum