How To Add Facebook Comment Count To Blogger?

Finally presenting the Facebook Comment Count plugin for blogger blogs.  With the successful integration of Facebook comments Plugin , now its time that you show the total number of comments posted on your homepages.  The steps are kept as simple as possible. This add-on uses a simple code snippet that automatically tracks FB comments posted and displays the total number of comments posted by visitors. Again this is a unique trick shared by MBT Blog only. Kindly view a demo first,


Live Demo

How To Add Facebook Comment Count To Blogger?

I assume that you have already installed the FB box on your blog if not then kindly first apply this tutorial:
  • Facebook Comments Plugin for Blogger
  1. Go To Blogger > Design > Edit HTML
  2. Backup your template
  3. Click the Expand Widget Templates box at the top right corner
  4. Search for this

<div class='post-header-line-1'/>
    5.   Just below it paste the following code,
<b:if cond='data:blog.url == data:blog.homepageUrl'>
<span style='float:right'><img class='comments-tab-icon' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhghQ-8PvI0pVAE_k9IcbPvZx4WlJsWf6cIo_Cpa7c_sN_xpfib2MgbXJV0jZfGT2v2FFJfCouiGGJTYo0LFTohPTBQnoH-Kr7whQtWXkeqs4OEYRFQv-uG2WwVvMjxyegVc1Sr4b3CO4w/s400/fb.png'/>
<a class='comment-link' expr:href='data:post.addCommentUrl'><fb:comments-count expr:href='data:post.url'/> Comments</a></span>
</b:if>
   You can replace Comments with any text you like.
     6.   Save your template and you are all done!

Sumber: http://www.mybloggertricks.com/2011/08/count-number-of-comments-on-facebook.html
Load disqus comments

0 komentar