You must have seen Facebook count box in many site which allow user to share content of page and also shows count of people who has already shared this content.
You can also have this “Facebook Share” count box in your website by following as below.
Currently, Facebook Share Count box comes in two version.
<a name=”fb_share” type=”box_count” href=”http://www.facebook.com/sharer.php”>Share</a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>
<a name=”fb_share” type=”button_count” href=”http://www.facebook.com/sharer.php”>Share</a><script src=”http://static.ak.fbcdn.net/connect.php/js/FB.Share” type=”text/javascript”></script>
You can use <div style=”float:right”> or <div style=”float:left”> around above code to make button to float right or left respectively according to your requirement in your website.
Note: Facebook will not show count till it will not be shared to minimum 3 times.
This post was last modified on March 4, 2011 3:58 am