Monday 16 April 2012

Adding Facebook Comment Box To Blogger

Important: All scripts hosted on widcraft.googlecode.com don't work anymore because Google has blocked that SVN repository.
In this tutorial, I'll show how to add Facebook comment box on your blog, which is a great way to receive more comments.

  • Go To Blogger > Template > Edit HTML > Tick expand widget template.
  • Now Find this code in your html by pressing Ctrl + f:

<data:post.body/>

  • Copy this code  and paste it below the code above:

<h3>Post Comment</h3>
<div id='fb-root'/><script src='http://connect.facebook.net/en_US/all.js#xfbml=1'/><fb:comments expr:href='data:post.url' num_posts='5' width='500'/>

Now you can see Facebook comment box in post pages only.You can change number of comments to show by changing num_posts='5' to your preferred number of posts. And you can also change width of the box by changing width='500'/> with your preferred width....Enjoy
Important: Check our new website TricksPanda.com for WordPress tutorials, plugins and more.
 
Powered by Blogger.