{ Gearing your tech needs }

How to implement Facebook Connect with your Wordpress Blog

by Honey Singh on July 18, 2009 · 14 comments

facebook connect How to implement Facebook Connect with your Wordpress BlogRecently Facebook launches the Facebook Connect APIs which provides the great functionalities like single sign-on, avatars, and News Feed publication of comments within your WordPress blogs. It is very simple to implement Facebook Connect with your WordPress blogs and here are the few simple steps to achieve it successfully.

Step 1

Download / Install and activate the best Facebook Connect plugin WP-FacebookConnect for WordPress. You can also Search WP-FacebookConnect from Plugins>Add New of your WordPress dashboard.add-new-plugin

Step2

Implement the following changes in your comment.php files located under your current WordPress theme folder.

Open the file comment.php file and locate the following code:

<?php if ( $user_ID ) : ?>
...
...

Add this php-function above your code, this will call the Facebook Connect buttons besides your comments fields. Here is the code to include :

<div style="float:right;">
<?php do_action('fbc_display_login_button') ?>
</div>

Step3

Configure your Facebook Connect Plugin Options and enter the API Key and Secret Key generated from Facebook application registration pageplugin-option

facebook-api

The final button will look like below

comment-look

How this plugin works?

facebook-login

Whenever a user wants to comments he need not any logins and just require a Facebook authentication. This works on the principle of WordPress login cookie which is set by the plugin as soon as the WordPress and Facebook accounts are linked and the Facebook user ID is verified. The best thing about the Facebook Connect is that users need not any registrations or require any forms filling as all the user with verification will be automatically logged into the blog.

Hey Bro, why not share this post :
  • StumbleUpon
  • Digg
  • Reddit
  • Technorati
  • Yahoo! Buzz
  • del.icio.us
  • Facebook
  • HackerNews
  • Twitter

Related posts:

  1. Top 69 Wordpress plugins for Twitter Managing the twitter together with Wordpress blogs is an...
  2. How to manage series of posts in wordpress blogs This post is dedicated for those who are into...
  3. 15 plus best adsense plugin for wordpress bloggers Every single bloggers wants to earns from their blogs...
  4. Top 10 Latest WordPress Plugins Worth Trying WordPress is a high-tech open source publishing platform that...
  5. How can you withdraw a facebook friend request? Do you accidentally added someone from your facebook account?...

Subscribe Now

If you enjoyed this post, you will definitely enjoy our others. Subscribe to the feed to get instantly updated for those awesome posts soon to come.

Free Subscription

8 Tweets 4 Other Comments

{ 14 comments… read them below or add one }

2 Abhinav July 18, 2009 at 3:47 pm

shows compatible upto 2.6
tested on higher versions ?

4 Honey Singh July 19, 2009 at 3:02 am

@Abhinav
It works perfectly fine with the WP 2.8.1
demo sites:
http://www.techprone.com
http://www.honeytechblog.com

8 Abhinav July 19, 2009 at 10:22 am

oh great ! will implement rightaway.
thanks

9 Harsh Agrawal [SML] July 28, 2009 at 4:08 am

Honey very useful post but how we can implement this on Thesis wordpress theme since they don’t have comment.php file..??
And please enable Subscribe to comment option so that I can follow up this conversation.

10 Honey Singh July 28, 2009 at 4:32 am

@Harsh
Techprone too have the Thesis Theme and is very easy to implement “Facebook Connect” in it.
Go to your theme folder and find the comment.php file (It is available for every wordpress theme including Thesis)
after opening your comment.php file you can follow the instructions described above to include the “Facebook connect” tags.
Bother me if you have any issues !

12 Mark29 October 22, 2009 at 5:49 pm

It has pedagogical purpose to enable students to think critically about the issue of evaluation and rubrics, and therefore to think critically about their own submissions. ,

13 mihnea February 9, 2010 at 10:14 am

actually i just tried this on a Thesis WP site, and it didn’t work :)

14 Honey Singh February 9, 2010 at 10:17 am

@mihnea
Where you faced the problem?
It works like cream for me !

Leave a Comment

Additional comments powered by BackType

Previous post:

Next post: