Thursday, November 17, 2016

How to Add a Facebook Share button in Blogger

No comments :


You probably have seen those Facebook share buttons on various blogs that allows people to share your post on their Wall through a simple click. In the past, we have already shown how to add a Facebook Like button on your blog. In this article, we will show you how to add a Facebook Share button in Blogger. It displays the total share count which gives you another reason to get more and more targeted traffic from Social Media websites like Facebook. First and foremost, you have to login into your Blogger account. 

Once logged in, go to Your Blog >> Template >> Edit HTML >> Search for<data:post.body/>  and paste the following code either above or below it (depending upon your needs as mentioned below). 
  • For Below Posts: In case you want to display the share button at the end of your posts then paste the following code below <data:post.body/>  tag. 
  • For Above Posts: However, if you want to display the share button at the beginning of your posts then paste the following code above <data:post.body/>   tag.


<div class="fb-share-button" data-href="" data-layout="button_count" data-size="large" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fbdpdfebook.blogspot.com%2F&amp;src=sdkpreparse">Share</a></div>


Now its up to you, what kind of button you would like to display on your site. Facebook provided a couple of options like Vertical, Horizontal or without counter buttons. To customize your button type, just replace "BUTTON-TYPE" with any of the following:
  1. box_count for full tall button with counter
  2. button_count for small button with counter
  3. button for without counter
  4. icon for a small thumb (without counter)
Once everything is done, save your template by pressing "Save template" button present at the top of the HTML template editor. Now go and check your site to see if everything is working just fine or not. 

We hope this tutorial have helped you in learning How to Add a Facebook Share button in blogger. We're also planning to add it on the next design update. Let us know what are your thoughts about this button? Does it gives you a little bit more Social Traffic? Lets have a meaningful conversation a head.



No comments :

Post a Comment