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,
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
- Go To Blogger > Design > Edit HTML
- Backup your template
- Click the Expand Widget Templates box at the top right corner
- Search for this
5. Just below it paste the following code,
<div class='post-header-line-1'/>
<b:if cond='data:blog.url == data:blog.homepageUrl'>You can replace Comments with any text you like.
<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>
6. Save your template and you are all done!
Sumber: http://www.mybloggertricks.com/2011/08/count-number-of-comments-on-facebook.html
0 komentar