Official Facebook Share Count Button for your WordPress
Not too long ago we shared how you can add a live facebook share button in your WordPress site using a third party script. Well Facebook has decided to release the official version of the fshare count button, so why rely on the third party script anymore?
To add the Official Facebook Share button simply open up a theme file of your choice and add the following code:
<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>
The code above will add a big tweetmeme like button that will display count in more like a box form. If you want to display a compact version then simply use the code below:
<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>
Feel free to wrap the codes around with any styling that you like. For further documentation and options visit the Official Facebook page.
Comments
5 Responses to “Official Facebook Share Count Button for your WordPress”Share Your Opinions
Tell us what you're thinking...
and if you want a pic to show with your comment, then get gravatar!
Please make sure that you have read our Comment Policy.










Great tool!
This is not working as advertised. The button shows up but it doesn’t not display share counts after refreshing the page.
It has been working on many sites, do not know what the issue could be with yours. We are planning on including it in our next update as well.
Unfortunately, I’m having the same issue as Shannon above had … it shows up only as a small button with an “F” on it. I clicked it myself and went through the steps of sharing it on Facebook and the image then changed to show a count of “1.” I then refreshed the page and it changed back to a small icon with just the “F” – no count was shown. I checked FB to ensure that it did, in fact, post to my wall.
I copied your first set of code into my theme via OpenHook in Thesis and placed it after my posts.
I’m not sure what is going wrong?
Also having this issue on my site. Count disappears after refresh.