How to configure the official Facebook Plugin for WordPress for automatic publishing

In order to better integrate the Facebook with WordPress, developers at Facebook recently released an official Facebook plugin for WordPress. This plugin helps you implement features like Send, Follow and Like button, Like box, Facebook comments with an ease. Best of all, with the help of this plugin you can automatically publish WordPress articles on a Facebook page or your own timeline. You can personalize the stories further by adding your comment or mentioning your friends before publishing the story on Facebook (example below).

wp_blog_mentions

(Image courtesy: Facebook)

Once you have installed and configured this plugin, every time you publish an article on your WordPress blog will be shared on your Facebook page automatically. Sounds simple, isn’t it? But configuring this plugin isn’t simple at all. Don’t worry, here’s a step by step guide to ease up your task.

Setting up the official Facebook plugin – Step by Step guide

1. Install the Facebook plugin

This doesn’t need an explanation. Search for the Facebook plugin from the WordPress backend, install, activate and you are good to go.

image

image

2. Create a Facebook Application

The moment you start setting up the plugin, it will ask for an App id and App secret. This means you now need to create a Facebook app to perform integration. Don’t worry, creating an app is easy, you don’t need to be a developer to create an app here.

Visit https://developers.facebook.com/apps/ and click create new app. Fill in the details:

image

Click continue, deal with Captcha and Facebook will ask for some more details.

image

 

Once you have filled the details and created the application, Facebook will provide you the ‘App id’ and ‘App secret’.

image

Go back to Facebook plugin settings of your WordPress blog, input these numbers and save changes.

image

3. Create the Open Graph Action

Setting up an Open Graph action defines what action a Facebook app needs to perform. Click on the Open Graph of your application.

image

Now define the action and object which would be “publish a article” in our case.

image

4. Finalizing the setup

The next step is to tell the plugin where you need to get your stories published automatically. It could be your own Facebook timeline or any Facebook page you own.

Go to Facebook > Social Publisher in the WordPress Backend:

image

Tick the option “Post an article to my Facebook Timeline after it is public” or choose a Facebook page from the dropdown.

image

Save changes and that’s it. You are done.

Now whenever you publish an Article, it would be automatically published to your timeline or the Facebook page your recommended. You will notice a ‘Facebook Status Box’ in the Add new post page. Here you can add a comment to personalize the story further.

image

Feel free to ask you queries in case you are stuck somewhere. Stay tuned for more WordPress tips and tricks.

Now if you want to display the Facebook Feed on your website then you can try the FaceBook Feed Plugin for wordpress.

Author Bio

Ashwini Sah

A technology blogger and WordPress Lover :)

1 Comment

  1. robert blaauboer - September 7, 2013

    I also use the social publish plugin, but i have a question. is it posible to change the way the link is posted to facebook? my site is under a subdomain. so instead of cdcr.robertblaauboer.nl/article1 i would like the link to be cdcr.nl/article 1 or just a link to cdcr.nl when there is a new article

Appointment Booking Plugin for Wordpress