Friday, 29 November 2019

Setup facebook comment box on blogger

Leave a Comment
1. Create a facebook app.
  • To create a facebook app, you have to get to this link and sign in to your Facebook account.
  • Now click on add new app button, and select www(website) platform.
2. Add this code below the <body> tag of your blog.
<div id="fb-root"></div>
<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_GB/sdk.js#xfbml=1&version=v2.4&appId=708042099312529";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
  • Replace my app id with yours.
3. Put this code where you want to show the comment box.
  • Find this code <data:post.body/> in your template, and put this code below it.
<div class="fb-comments" data-numposts="3"></div>
  • The final code should look like the code below.
tag of your blog.
Replace my app id with yours. 3. Put this code where you want to show the comment box. Find this code in your template, and put this code below it.
The final code should look like the code below.


<data:post.body/>
<div class='fb-comments' data-numposts='5' data-width='620'/>


For more details watch this tutorial video
If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment