February 17, 2014

Textual description of firstImageUrl

How to Add Facebook Like Button in Each Blogger Blog Post

|
Here is a step-by-step guide on how to add Facebook Like Button to each and every Blogger blog post.


1. Go to Blogger Dashboard. Click on Template.

2. Click Edit HTML.

3. Copy the code below:

<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>


4. Look for <body> tag in the template.

5. Paste the code AFTER the <body>

6. Copy the code below:

<div class="fb-like" expr:data-href='data:post.canonicalUrl' data-send="true" data-width="450" data-show-faces="true"></div>

7. Now look for <div class='post-footer'> in the template.

8. Paste the code above AFTER the <div class='post-footer'>

9. Save the template setting.

10. That's all.