How to implement Facebook Connect with your WordPress Blog
Recently 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.
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>
Configure your Facebook Connect Plugin Options and enter the API Key and Secret Key generated from Facebook application registration page
The final button will look like below
How this plugin works?
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.