How to add facebook like button in every blog post

Facebook is the most popular social networking site where everyone can post personal views and people respond to the posts by liking or commenting on them.Now if you want to get responses of your blog visitors you can either use a third-party polling stars or you can simply add a facebook like button in your every blog post.The later option is worth a shot because you can receive responses from the users of largest social networking site.Here are a few steps after following which you will have fb like button...


  • Go to Facebook developers site.
  • Adjust your like button settings.
  • Copy the iframe code and goto blogger home
  • Edit your template's html code by going to template tab
  • Search for <data:post.body/> by pressing Crtl+F.
  • Search for the second occurrence of the above mentioned code.
  • Paste the iframe code above <data:post.body/>
  • Now one final step, you need to edit the iframe code a bit
  • Replace the href=https%3A%2F%2Fdevelopers.facebook.com%2Fdocs%2Fplugins%2F&width&amp;
    of existing iframe code by
    href=&quot; + data:post.url + &quot;&amp;
  • Now save the template and see if you get what you want

Note:If you don't get the like button then add the modified iframe code above each <data:post.body/>.

Comments

Popular posts from this blog

Search box for blog or website

Image Search Engine Using Python

Cordova viewport problem solved