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.