Blogger Widgets

Facebook Comment Box For Blogger

Facebook Comments Box For BloggerIn 2009 Facebook developers introduced their best social plugin called "Facebook Comments Box". This plugin can be embedded in any website or blog and visitors can use their IDs of Facebook, Yahoo, AOL or Hotmail to leave a comment at your site.

Facebook comment box is one of the useful tool for bloggers to increase conversations. Now to add Facebook Comment Box to your Blogger blog follow these steps.

Step 1: Disable Default Comments

Let's start with disabling blogger default comments because you might not want to have 2 comments forms. Now to do this log into Blogger account and go to settings >> posts and comments

Facebook Comments Box For Blogger
Next to "Show Comments" field choose Hide and hit Save Settings.

Step 2. Generate your Facebook App ID

Now to get a facebook comments box in your blogger blog you should generate your own Facebook APP ID/API KEY, it’s really easy and one step process.

Log into your Facebook and go to
Then click + Create New App at the top right corner of the page. A new pop-up window will show up.

Facebook Comment Box For Blogger Blog

Enter an application name, check "I agree to the Facebook Terms"  and click "Continue".

After passing a capcha you will get a new form

FAcebook Comment Box ForBlogspot Blog

Fill the following info:

App Namespace: Enter anything but if you use more than one word use "-" as a seperator not space.

App Domain: You must type but if your using blogger custom domain you should enter your domain name.

In the end select "Website" to integrate with facebook. and enter your Blog URL and hit Save Changes.

On the next page Facebook will give you the App ID

Facebook Comments Box FOr Blogger Blog

Just copy it and paste it in a text editor like notepad, we’ll need use in the next steps.

Step 3. Codes To Add To Your Template:

You must add the following codes to your blogger template to ensure that the comments box will work for your blog in the right way.
  • xmlns attribute
  • Javascript SDK
  • Open Graph Protocol tags
Adding the xmlns attribute:

Now go to your Blogger account once again and navigate to, Template >> Edit HTML, hit Proceed and check Expand Widget Templates

How To Add Facebook Comments Box To Blogger Blog

Now find (CTRL+F) this in the code:


and at the following code at the end (before closing the > ). Put a space before it.


Adding the Javascript SDK Code:

Now find (CTRL+F) this in the code:


Add the following code just below/after it.

<div id="fb-root"></div>
window.fbAsyncInit = function() {
FB.init({  appId  : 'YOUR APP ID',
status : true, 
cookie : true, 
xfbml  : true 
(function() {
var e = document.createElement('script');
e.src = document.location.protocol +
e.async = true;

Note: don’t forget to change YOUR APP ID to your app id ( You got in Step 2).

Adding the Open Graph protocol tags:

Copy the following code

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<meta expr:content='data:blog.pageTitle' property='og:title'/>
<meta expr:content='data:blog.url' property='og:url'/>  
<meta expr:content='data:blog.title' property='og:title'/>  
<meta expr:content='data:blog.homepageUrl' property='og:url'/>
<meta content='YOUR-BLOG-NAME' property='og:site_name'/>  
<meta content='LOGO-URL' property='og:image'/>  
<meta content='YOUR-APP-ID' property='fb:app_id'/>  
<meta content='FACEBOOK-PROFILE-ID' property='fb:admins'/>
<meta content='article' property='og:type'/>

and change the colored text to the following,

Change YOUR-BLOG-NAME with your Blog name.
Change LOGO-URL with your blog logo, or remove the all tag if you don’t want it.
Change YOUR-APP-ID with your application ID number ( You got in Step 2).
Change FACEBOOK-PROFILE-ID with your own Facebook user Profile ID.

After making these changes paste the above code just before/above


Step 4. Adding the Comments Box to your Blogger template:

Now find (CTRL+F) this in the code:


and paste the following code just below/after it.

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<div><script src=''/>
<fb:comments migrated='1' width='450' expr:title='data:post.title'
expr:href='data:post.url' expr:xid=''/>

Step 5.

Save the template.

For comment moderation just go to and click the settings at the rignt.
Facebook Comment Moderation
A pop up window will come up
FAcebook COmment Moderation
Here you can moderate comments, add your own blacklist words or choose the standard Facebook restrictions. 
HTML Comment Box is loading comments...


Friends, this is Muzammil Sethi here, the administrator of Blogging Junction Read more


Do you have a tip you want to share, or do you have a suggestion you want to make for a future tip or trick. Then please head over to the contact page and make your comment known.


Fancy a chat, you can contact me easily. I will respond to any question you ask. Interested in an advertising partnership, have a cool product you want to promote, then please leave a message.


Connect with this site through these methods: