PHPMatters Help You Better Hosting Your PHP-based Sites
How to Publish WordPress Posts to Facebook Automatically

How to Publish WordPress Posts to Facebook Automatically

At present, the utilization of social media means a lot for the success of any blog and website running. Facebook, in particular, has a large user base and acts as the critical resource for anyone looking to expand the reader base of their online sites. To maximize the benefits got from Facebook for the websites, most webmasters choose to share their content on this popular platform each time their sites are updated with fresh information. This method surely can bring you more chances to better promote your site and content over the Internet.

However, some people have complained that sharing website content on Facebook manually is somewhat time-consuming and many of them always forget this important step after publishing a new blog post. In this case, we highly recommend you to auto-post your articles with some simple tools. The below tutorial simply discusses how to publish WordPress posts to Facebook automatically.

Utilize the Facebook Auto Publish

This is a great option we’d like to recommend if you are looking to connect your WordPress site with Facebook tightly for the auto-sharing of web content. With it, you can choose to publish your blog posts as the pure text messages, the attached links to your website or some images with the textual descriptions. In addition, this plugin has a highlighted filtering feature, with which you can filter the content sharing based on your custom post types and blog categories.

Now, you can start installing the Facebook Auto Publish plugin from the back-end of your WordPress site. After that, you need to click the Facebook Auto Publish button from the navigation menu. Here, you can set up this plugin for some important aspects.

Create Facebook Application

First of all, you have to create a Facebook Application and enter its ID and secret into the mandatory fields. To create such an important application, you initially should enter this Facebook App page and click the Add a New App button. After that, you need to choose a platform to get started. The listed options include IOS, Android, Facebook Canvas and Website. This time, you should choose the Website option.

Add A New APP

In the next screen, you should give a name to this application and click the below button.

Create New Facebook App ID

After that, you need to offer the contact email that is used for the necessary communication about your Facebook app and to choose the category for the application. Then, click the Create App ID button.

Create App ID

Now, you can be brought to the dashboard of this application. Here, you can find the App ID and App Secret. Just copy them.

APP Dashboard

Next, you should click the App Review button from the navigation to make this app available to the public.

App Review

In addition, you should click the Settings button and then hit the Add Platform button. Here, you can find some platforms that can be associated with your Facebook App. Simply click the Website option and offer your website domain before saving the changes.

Add Platform

Now, you can go back to the plugin settings of your WordPress site and enter the required ID and secret of that Facebook application.

Fill Out the Mandatory Fields

In addition to the Application ID and Application Secret, you also should offer your Facebook User ID. To get this, you only need to enter the profile page of your Facebook account, and then, find the ID from the address bar.

Facebook User ID

Then, you can decide the format for the sharing of your blog posts. For instance, you can choose to add the blog title, post title, post link, content, excerpt and author name into the Facebook message. Also, you should determine the posting method between the options of text, text with links and text with images.

Lastly, do not forget to enable the auto-publishing feature of this plugin.

Message Format for Posting

Decide the Basic Settings

Now, you need to decide some basic settings of this plugin, which directly influence how your blog posts will be shared on the Facebook platform.

  • You can choose to publish both the WordPress “pages” and “posts”, or only share either of them.
  • This plugin allows you to select the post categories that can be applied to the auto-publish feature. In this case, you can share all the categories or only some specific options based on your needs.
  • If you have the custom post types and only want to choose some of them for auto-publish, you can choose your targets from the drop-down list.
  • When editing a post or a webpage, you can choose the auto-publish as the default selection or not.
  • You are allowed to enable the SSL verification for the better security.
  • This plugin allows the filter feature during publishing, so you can choose to enable the content filter, title filter and excerpt filter.

Basic Settings

After clicking the Update Settings button, you need to authorize this plugin from the WordPress admin. This is the last step that you need to do. After that, every time you publish a new post on your site, it will be shared on Facebook automatically.

Authorize Plugin