Add Facebook and Blogger Comments As Tabs In Blogger

Read {count} times since 2020

Having multiple comments box on your posts make more comments. The most popular of Comments are Facebook. Why not add Facebook comments with Blogger comments on your blog. This can be easily done if you follow this tutorial carefully.

Go to Blogger -> Template -> Edit HTML.

Paste the following code below "" tag :

<script src=''></script> 
<script src=''/>
<script type='text/javascript'>
 function commentToggle(selectTab) {
  $(selectTab + "-page").show();

Search for <html and replace it with the following code :

<html xmlns:fb=''

Add the following HTML code above "" :

/*--- Tabbed Facebook Comments By ----*/
.comments-page {
 background-color: #f2f2f2;
#blogger-comments-page {
 padding: 0px 5px;
 display: none;
.comments-tab {
 float: left;
 padding: 5px;
 margin-right: 3px;
 cursor: pointer; 
 background-color: #f2f2f2;
.comments-tab-icon {
 height: 14px;
 display: inline-block;
 vertical-align: top;
 margin-right: 3px;
.comments-tab:hover {
 background-color: #eeeeee;
 background-color: #d1d1d1;

By using the Blogger shortcut key CTRL + F find this code :

<div class='comments' id='comments'>

Note : If you found two codes like above, you have to paste the code shown below after the two codes you found.

     <div class='comments-tab' id='fb-comments' onclick='javascript:commentToggle("#fb-comments");' style='float:left;' title='Facebook Comments'> 
      <img class='comments-tab-icon' src=''/>
      <fb:comments-count expr:href='data:post.url'/> Comments 
     <div class='comments-tab inactive-select-tab' id='blogger-comments' onclick='javascript:commentToggle('#blogger-comments');' title='Blogger Comments'>
      <img class='comments-tab-icon' src=''/>
      <data:post.numComments/> Blogger Comments
 <div class='comments-page' id='fb-comments-page'>
  <b:if cond='data:blog.pageType == "item"'>
   <div id='fb-root'></div>
   var js, id = 'facebook-jssdk';
   if (d.getElementById(id)){return;}
   js = d.createElement('script'); = id;
   js.async = true;
   js.src = "//";
   <fb:comments colorscheme='light' expr:href='data:post.url' expr:title='data:post.title' expr:xid='' width='450'/>
 <div class='comments comments-page' id='blogger-comments-page' style='display:none;'>

Save the template. You will get an error. Blogger will automatically highlight a code (). Paste the following code above the code Blogger highlighted :


Save the Template and check out a post on your blog. Every post on your blog will now have a Facebook & Blogger Comments tabbed. If you want help, post a comment.

Show Comments