Add Facebook Comment Social Plugin to Your Blogger Blog



Blogger offers you default Blogger comment form for your blog to get feedback from your readers. Readers can comment on your content and ask question through your comment form. In addition to default comment form, you can add third party comment forms to your blog too. But beyond the commenting, you may like to add stylish comment plugin to your blog. And what if your comment form can give more exposure to your content addition to commenting? So you would like to try it out on your blog and you may find it useful if you are think out of the box.


Facebook is a popular social media platform on the web. Beyond the social media capability, Facebook offers series of social plugins to webmasters. Facebook comment box is another useful plugin offered by Facebook. It is stylish and enables user to post the comment on user's wall with the link to your content. So it will add more exposure to your content too. And as the most users are Facebook members, they don't need to sign up to comment and they will find it more comfortable too. But you may find it difficult when you implement the Facebook comment plugin in your blog. If so you can learn how to implement comment plugin for each post. In addition, here you can learn how to add moderation capability for your comment box too. So you can use Facebook comment plugin more efficiently and productively in your blog.

Before You Go:

* Decide whether you keep or disable default comment feature on blogger. If you wanna disable comment form, go through the steps below.

Disabling Default Blogger Comment Feature

  • Click on your Blog Title.
  • Navigate to Settings.
  • Go to Posts and comments tab under Settings.
  • Select Hide for Show Comments option and Save settings.

* Set up Facebook JavaScript SDK and Open Graph Protocol in your blog.

Note: If you have a restricted blog, the Open Graph tags might not be crawlable. So you will find no comment moderation available or missing information when sharing, though you have specified information using Open Graph meta tags.


Steps:

1. Go to Blogger Dashboard.

2. Click on your Blog Title.

3. Navigate to Template from left pane.

Note: Before editing your template, you may want to save a copy of it. 

4. Now click Edit HTML button.

5. Click Proceed button to view Template Editor.

6. Now search for <data:post.body/> in your template and add below comment plugin code after that. You can either use XFBML code or HTML5 code to implement XFBML version of comment plugin.

Notes:

* Adding below <data:post.body/> will place your button under the post.
* If you already have Facebook comment plugin, you can upgrade your comment plugin by adding migrated='1' to your existing code and your old Facebook plugin comments will be remained - i.e: <fb:comments....... migrated='1'>

XFBML Markup

<b:if cond='data:blog.pageType == "item"'>
<fb:comments expr:href='data:post.url' num_posts='2' width='500' colorscheme='light'/>
</b:if>

HTML5 Markup

<b:if cond='data:blog.pageType == "item"'>
<div class="fb-comments" expr:data-href="data:post.url" data-num-posts="2" data-width="500" data-colorscheme="light"></div>
</b:if>

Color Indication Information

   - Number of posts/comments displayed

This will set default number of comments to be displayed under Facebook comment box and other comments will be collapsed. If you wanna show all comments under the comment box, then remove this value with the attribute completely.

i.e: num_posts='2'

   - Width of comment plugin, in pixels

   - The color scheme of your comment plugin, specify light or dark.

   - Conditional Statement

This line validates your page and manage to show comment box only on post pages. If you need to show your comment box also on homepage for each post, then replace this line with line of code below.

<b:if cond='data:blog.pageType != "static_page"'>


7. Now you are done with adding Facebook Comment plugin. If you would like to show Facebook comment count along with the comment box, just add below line of code after or before comment plugin code.

<fb:comments-count expr:href='data:post.url'/> Comments

8. Now Save your template and check for new comment plugin under posts.

9. Your comment moderation tools will be displayed as follows, or you can access them via Facebook Comment Moderation Tool site.


Get Free Updates:
*Please click on the confirmation link sent in your Spam folder of Email*