How to Automatically Post to Facebook From WordPress
Do you want to automatically post to Facebook from your WordPress website?
Facebook is one of the largest social media sites in the world, with almost 3 billion active users. By sharing your blog posts on Facebook, you can drive more visitors to your site and get more pageviews.
In this article, we will show you how to automatically post to Facebook every time you publish a new WordPress blog post.
Why Automatically Share WordPress Posts on Facebook?
There are lots of ways to stay in touch with your audience, such as building an email list and sending out a regular email newsletter. Still, you can’t ignore the huge user base of social media websites like Facebook.
As the largest social media website, Facebook can be a big source of traffic for your WordPress website.
To build a strong following, it’s important to engage with your Facebook audience. This means answering comments, sharing content, and posting regular updates on Facebook.
This can become overwhelming, so we have put together a complete social media cheat sheet for WordPress to help you get started. You can also save time and effort by automating your social media activities.
That being said, let’s see how you can automatically post to Facebook every time you publish a new WordPress post.
Video Tutorial
If you’d prefer written instructions, then just keep reading.
Automatically Post to Facebook From WordPress Using Uncanny Automator
The best way to automatically post to Facebook is by using Uncanny Automator. It is the best WordPress automation plugin on the market and lets you create powerful workflows that will save you time, provide a better user experience, and grow your business.
Even better, it integrates with over 150+ plugins, apps, and services, including Google Drive, Slack, Asana, Facebook, and more.
In this guide, we will be using the Pro version of Uncanny Automator.
Note: There is also a free Uncanny Automator plugin that gives you 1,000 credits to use with Facebook, so you can try the plugin before you buy. Once you have used those credits, you will need to upgrade to a Pro account or higher to continue posting to Facebook automatically.
The steps will be mostly the same if you are using the free plugin.
First, you need to install and activate the Uncanny Automator plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, you will also be asked to install the free version of Uncanny Automator. This light version of the plugin is used as the base for the Pro plan.
Upon activation, visit the Automator » Settings page and enter your license key into the ‘Uncanny Automator Pro license key’ field.
You can find this information in your account on the Uncanny Automator website.
With that done, click on the ‘Activate license’ button.
Connecting Your Facebook Page to Uncanny Automator
Before you can create an automated workflow for Facebook, you will need to connect your Facebook page to Uncanny Automator.
To make this connection, visit the Automator » App Integrations page and switch to the ‘Facebook Pages’ tab from the left column.
Here, select ‘Connect Facebook account.’
After you click this button, a popup will appear where you can log in to your Facebook account. If you have enabled two-factor authentication, then you will also need to pass this additional check to connect Facebook to Uncanny Automator.
Once you are logged in, Facebook will ask if you want to give Uncanny Automator access to your name and profile picture. If you are happy to do this, then click the ‘Continue as’ button.
Next, you will be asked whether you want to let Uncanny Automator post on Facebook.
You can go ahead and click on ‘Continue.’
Once you have done that, you will be taken back to the Uncanny Automator dashboard.
You will now see all the pages that are linked to your Facebook account. These are the pages that Uncanny Automator can post to automatically.
Automatically Posting to Facebook from Uncanny Automator
Now, you are ready to create a recipe that will automatically post a Facebook status every time you publish a new WordPress blog post.
Simply go to Automator » Add new in your WordPress dashboard
You can now choose whether to create a ‘Logged-in’ recipe or an ‘Everyone’ recipe. For this recipe, go ahead and select ‘Logged-in users’ and then click the ‘Confirm’ button.
Next, you can give the recipe a name by typing it into the ‘Title’ field.
This is just for your reference, so you can use anything you want.
After that, you must define the condition that will trigger the action.
We want to post to Facebook every time we publish a WordPress blog, so click on ‘WordPress’ under ‘Select an integration.’
You will now see all the triggers you can use on your WordPress website.
You should search for ‘publish’ and choose the trigger called ‘A user publishes a type of post with a taxonomy term in a taxonomy‘.
In this example, we only want to update Facebook when we publish a post and not a page. With that in mind, open the ‘Post Type’ dropdown and select ‘Post.’
You can then decide if you are going to share posts from a particular category or tag by changing the ‘Taxonomy’ settings.
Don’t forget to click on ‘Save’ to store your changes.
Next, you will need to choose the action that Uncanny Automator will perform every time you publish a post. Start by clicking the ‘Add action’ button.
Uncanny Automator will now show all the integrations you can use. For example, there’s an integration that lets you automatically tweet when you publish a new post in WordPress.
Since we want to post to Facebook, go ahead and click the ‘Facebook Pages’ button.
You will now see all the different Facebook actions.
If your posts have a featured image, then it’s a good idea to select ‘Publish a post with an image.’ However, if you don’t want to add an image to your Facebook posts, then you can select ‘Publish a post to a Facebook page’ instead.
If you own more than one Facebook page, then select the one you want to post to using the ‘Facebook Page’ dropdown.
After that, you can create the status that you want to post by typing it into the ‘Message’ box.
When writing the status, you will need to add the post title and URL to the message using tokens. When Uncanny Automator posts your status, it will replace these tokens with real information from the post.
To add a token, click on the ‘*’ button.
Then, click on the arrow next to ‘A user publishes a Post…’
This shows you all the different tokens for the post.
You can add any token to your Facebook status.
However, you will typically want to select ‘Post Title’ and ‘Post URL’ so that people can visit the blog post.
If you selected ‘Publish a post with an image’ as your action, then you will need to let Uncanny Automator know where it can find that image.
Find the ‘Image URL or Media library ID’ field and click on its ‘*’ button.
Then, click to expand the ‘A user publishes a post…’ trigger.
Here, click on ‘Post featured image URL.’
When you are happy with how the action is set up, don’t forget to click on ‘Save.’
At this point, you may want to add a delay so that Uncanny Automator doesn’t post to Facebook as soon as you publish the blog.
To do this, hover your mouse over the ‘Publish a post to…’ action and click on ‘Delay’ when it appears.
Now, you can choose whether to trigger the Uncanny Automator action after a delay or at a specific date or time.
This allows you to post to Facebook when your audience is most likely to be online.
Now that you have set the trigger and action, it is time to publish the recipe.
To do this, click the ‘Draft’ switch so that it shows ‘Live’ instead.
Once the recipe is live, Uncanny Automator will post a new Facebook status every time you publish a post.
We published a new blog post on our test site, and this is how the post appeared on our Facebook page.
If the right thumbnail image doesn’t appear in the Facebook status, then you can see our guide on how to fix the incorrect Facebook thumbnail issue in WordPress.
Bonus: Create a Custom Facebook Feed in WordPress
Apart from posting to Facebook from WordPress, you can also embed your whole Facebook feed on your website. This will allow visitors to view your Facebook posts without having to leave your site and can boost user experience.
Plus, it can encourage users to check out your Facebook page and may lead to more followers.
To embed your Facebook feed, you will need to install and activate the Smash Balloon Facebook Feed plugin. Upon activation, just head to the Facebook Feed » All Feeds and then click on ‘Add New.’
This will take you to another screen where you must select ‘Timeline’ as the feed type and click the ‘Next’ button.
You will then need to connect your Facebook account with Smash Balloon. For more details on this, you can see our tutorial on how to embed a Facebook group feed in WordPress.
Once that is done, you can easily customize your Facebook feed in the Smash Balloon’s visual editor. Here, you can change the background color, select a layout, add different buttons, and so much more.
Then, click the ‘Save’ button at the top to store your settings.
Now open the block editor and add the ‘Facebook Feed’ block from the menu. Next, select the Facebook feed that you just created from the dropdown menu within the block.
Finally, click the ‘Update’ or ‘Publish’ button to store your settings. For more information, see our tutorial on how to create a custom Facebook feed in WordPress.
We hope this tutorial helped you learn how to automatically post to Facebook from WordPress. You may also want to learn how to embed a Facebook video in WordPress and see our expert picks for the best WordPress Facebook plugins to grow your blog.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.