Add a Facebook Sharecount button to your website or blog
Pieter posted in "Software & scripts". 14 years, 5 months ago
You might have already noticed the green TweetMeme button we recently started placing at the top right of our posts, which allows visitors to instantly “retweet” it while also keeping track of how many did. But since we’re a Facebook site in the first place, a similar button showing the number of Facebook shares seemed like an even better idea. Today I found a free service/plugin that does the job, called fbShare.me, and it comes with the following features:
Displays the number of shares and on hover the total number of clicks for those shares (displays Facebook logo when 0 shares) Large or small button Track the shares from the button using your awe.sm API Key or fbshare.me links Add Google Analytics parameters to fbshare.me links
There’s a WordPress plugin available here, but the sharecount button can be placed on any site or blog by embedding the following code:
<script src="http://widgets.fbshare.me/files/fbshare.js"></script>
For advanced options check out the plugin’s homepage at fbshare.me (aren’t .me domains the coolest).
Now, I’m not sure if I’m going to keep the button because it seems to be loading very slow, at least on my system. I also wish it would pick an image from the post and add it as a thumbnail on Facebook.
PS: Both the Retweet and Facebook Sharecount buttons are included in the Digg Digg plugin for WordPress, in addition to Digg, Reddit, Dzone and Yahoo! Buzz.