Facebook connect in wordpress

Posted by saurabh On January - 17 - 2010
   Share ('DiggThis’) Delicious  delicious      Google BuzzGoogle Buzz      SocialTwist Tell-a-Friend     
VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)

I successfully integrated facebook connect API with my blog running on wordpress. Users can now log-in with facebook and post their comments on the blog. The comments posted on wordpress blog will also be published on their facebook’s live feed.

The plugin for wordpress is developed by Adam Hupp and the modified version (v1.2.2) can be downloaded from here.

  • Login to Facebook and create an application
  • Note the API Key and Secret code
  • Download the plugin (http://www.techwhiz.in/repository/zip/fbconnect v1.2.2.zip)
  • Login to your blog and install the plugin
  • Open ‘Facebook Connect’ Plugin Options and Enter the API Key & Secret code
  • Open the file ‘comments.php’ located in your theme folder of your blog
  • Insert the following code where you wish to show the facebook connect button

<?php do_action(‘fbc_display_login_button’) ?>

  • Save the ‘comments.php’ file

 

The most common error is that the comments posted on wordpress may not be published to your facebook’s live feed. This generally occurs when you use a link instead of button in comment form to initiate submit action.

The following code for ‘Submit Comment’ link should not be used:

<a title="Submit Comment" href="javascript:document.commentform.submit();">Submit Comment</a>

However the following code to generate ‘Submit Comment’ button is recommended:

<input name="submit" type="submit" id="submit" value="Submit Comment" />

VN:F [1.8.1_1037]
Rating: 0 (from 0 votes)
120 views ;  TAGS: , , , ,
blog comments powered by Disqus

The real happiness of life is in doing ‘karma. — Rig Veda