Facebook Like Button To Each Post

facebook like button
In this tutorial i will show you how to add the Facebook Like button under every post in Blogger Blog. This will give to your readers the ocasion to like a post from your blog. So let`s see how to add the Facebook Like button.
Facebook like button

How To Add Facebook Like Button To Each Post

  • Go to Blogger
  • Template > Edit HTML
  • Search <body> tag and under it, paste the below given code :
<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_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
  • Search <data:post.body/> tag (you might find it more than 3 times, stop to the 2nd one (or 3rd one in case it wont show up after applying the code) and add the below given code under <data:post.body/> tag
<!-- Facebook like button START  -->
<div class="fb-like" data-send="false" data-layout="button_count" data-width="450" data-show-faces="false">
</div>
<!--  Facebook like button END  -->
The upper given code can be added in a widget and placed wherever you want.
Share this post
  • Share to Facebook
  • Share to Twitter
  • Share to Google+
  • Share to Stumble Upon
  • Share to Evernote
  • Share to Blogger
  • Share to Email
  • Share to Yahoo Messenger
  • More...