I got a question from Mike Winstanley on How do I publish my WordPress Post automatically on Facebook Fan page. This is something which I forget to write earlier, though I have already written about “Connecting Twitter account with Useful Applications“.
I did some research to find out how the integration of Facebook with WordPress and vice versa works, or — in other words — how you can present your WordPress blog on Facebook or use the functionality of Facebook on your WordPress-powered blog. Both of these can be achieved with a set of WordPress plug-ins, a couple of which I’ll present here in detail. Even on Facebook Fan page there is an option for this.
1. Integrating A WordPress Blog Into Facebook
Integrating a WordPress blog into Facebook is actually quite simply achieved via the Facebook API.
Creating an app ID for your blog:
WP Facebook does require a little coding within your blog’s theme. However, the coding is minimal and will help expose you to very basic PHP, if you are not already familiar with it.
Facebook Connect requires you to set up a Facebook application to communicate between Facebook and your blog.
1. Visit http://www.facebook.com/developers/createapp.php.
2. For the sake of organization, give your application the name of your blog or something similar.
3. Facebook will automatically generate an API Key and Secret—each of these keys will be required to complete the setup of the WP-FacebookConnect plugin.
4. In the Settings | Facebook Connect, provide your API Key and Secret.
5. Click Update Options.
Once you have set up your plugin, your website will automatically include a Facebook badge in the upper-right-hand corner of your website. If a user is logged into Facebook, they will see their name and their avatar.
Adding the connect button to your comments:
In most cases, a user will want to connect their Facebook account to leave a comment on your website. To have a ‘connect to Facebook’ button on your comments page, you will need to edit your themes in the comments.php file.
Locate the comments.php in Appearance | Themes | Editor. Select the comments.php and insert the following code to add the Facebook Connect button at the end of the file:
<?php do_action(‘fbc_display_login_button’); ?>
WordPress rocks. Here’s a plugin for bringing your WordPress blog posts into Facebook, and enabling users to comment and share those posts.
2. Integrating Facebook In A WordPress Blog
Facebook announced in 2007 that it would implement OpenID, and others followed, which explains why we now find more and more buttons that say “Connect with Facebook” or “Google Friend Connect.” This leads us to our second plug-in, Facebook Connect WordPress plug-in, which almost seamlessly integrates Facebook into your blog. Read more detail How To Integrate Facebook With WordPress from Smashing Magazine.
Reference and Resources:
- Movable Type
A plug-in by Six Apart for adding Facebook Connect to a Movable Type blog, allowing any Facebook user to sign in. It is still in beta.
This plug-in is quite similar to the one on sociable.es. It has the same features, such as single sign-on, publishing comments to news feeds and displaying profile pictures. However, it has not been updated since the beginning of the year. Still, there is a nice tutorial by the developer Adam Breckler.
- WordPress Fotobook
With this WordPress plug-in, you can import all of your photo albums from Facebook onto a WordPress page.
- Drupal’s Facebook Connect module
With this Drupal module, you can allow Facebook users to connect to your blog through their account. Similar to the plug-in by sociable.es.
- Gigya WordPress plug-in
This plug-in integrates not only Facebook but Twitter, MySpace and other OpenID providers into your blog for community building.
This small plug-in displays your Facebook, Twitter or Last.fm status on your blog.
Integrate Facebook-sharing functionality on your blog with this plug-in. However, it has not been actively developed for some time. And with the sociable.es plug-in, it is practically redundant.
- How to Automatically Publish your latest Post On Facebook Fan Page
- How to submit blog posts from WordPress to Facebook automatically
- 6 Best Facebook WordPress Plugins
- 12 Useful Facebook WordPress Plugins For Bloggers
- 7 astuces pour lier votre blog WordPress et votre profil Facebook