July 20, 2014

Facebook Comment Form Not Working? Try This Solution for Blogspot Blogs

If you've been finding it difficult to integrate the Facebook comment box with your Blogger blog, sit back and relax as I guide you on how to add Facebook comments plugin to Blogspot blogs using HTML5.

For you to add the Facebook social plugin to your blog, you will need the Facebook Application ID of the blog. If you know the ID, copy it somewhere and if you don't know it you can check the Facebook apps page.

You can read: How To Get Facebook Application ID to generate one for your blog....

Next is to log in to your Blogger dashboard, back up your template and go to "Template" > "Edit HTML"

==> Click inside the HTML and use CTRL F to find : <body

==> Directly below it, paste <div id='fb-root'/> OR <div id="fb-root"></div>

==> Open a new tab on your browser and go to www.freehtmlparser.blogspot.com
==> Copy and paste the code below inside the box on the page


<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=522587054526444";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

==> Carefully replace the highlighted appID with the ID of your blog
==> Click "Encode"

==> Go back to the browser tab where you have your blog HTML

==> Copy and Paste the encoded script directly below the  <div id='fb-root'/>

==> Now, your html should look similar to the screenshot below:



==> Click "Save Template"

==> Click inside the HTML and use CTRL F to find :
<div class='post-footer-line post-footer-line-3'>
 OR
<div class='post-footer-line post-footer-line-3'/>
 OR
<data:post.body/>

==> Directly below it, paste this code : 

<b:if cond='data:blog.pageType == &quot;item&quot;'>
<p align='center'>
<img alt='' class='icon-action' src='https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-7SS1k8x1_i52OCta-AnYMepOXYCKlerMydSjZD1cyKBKc6T2h-YFE7LEEP83oLT3HJvsC9c6PdTaCsc7zaDDRftEU_sEBIumYVMOiWEaaPs1RVjklGDUvf9I49uA1Oi4yOVzUvdlUthC/s1600/cmds.png'/> </p>
<div style='text-align: center;'>
<div class="fb-comments" expr:href='data:post.url' data-width="300" data-numposts="10" data-colorscheme="light"></div></div>
</b:if>

==> Click "Save Template"

NB: You can change the data-width from 300 to any width you want.

That's all.

Check out the desktop view (not Mobile View) of any post on your blog and you should see the comment form below the post.

Please, let me know if it works for you.

Also use the comment form to let me know if you face some challenges.

Please, SHARE this with friends.

Cheers!

Subscribe to this blog if you don't want to miss my tutorials on how to add Facebook comment form to Blogger mobile templates and how to receive notifications On Facebook when anyone comments on your blog, using the Facebook comment form. 

No comments:

Designed by Linda Blog.