HOW TO: Facebook Share Count Button For Blogs

No debate on the topic that Twitter has grown breaking all boundaries. And Facebook has never missed out any chance to try to copy Twitter’s features. Well you haven’t heard of the TweetMeme Retweet button for blogs? You can see it live on chethstudios Blog. And Backtweets also introduced a rival twitter retweet button and it was impressive too. NO before you start accusing Facebook that It’s stolen this idea again let me tell you about fbshare.me These guys have come up with a Facebook share button with a counter! You can see the share button yourself, let me tell you how you can put it up on your blog.

facebook+share+count+button+blogs HOW TO: Facebook Share Count Button For Blogs

The Facebook sharecount button displays the number of times the current page has been shared on Facebook and allows visitors to share it themselves. Inspired by the popular Retweet buttons, it was built by us folks behind awe.sm

Update: Now there is an Official Facebook Share counter. Suggest you to use the new counter here.

Main Features:
Displays the number of shares and on hover the total number of clicks for those shares (displays Facebook logo when 0 shares)
Track the shares from the button using your awe.sm API Key or fbshare.me links
Add Google Analytics parameters to fbshare.me links

WordPress users, can easily get the plugin. Otherwise, get the embed code.

Blogger / Blogspot users Login to your Dashboard > Layout > Edit HTML and check the “Expand Widget Templates” option. Don’t Forget to backup before you try changing any codes.

Firstly Locate this code in your blogger template.

<data:post.body/>

And then copy and paste the below code just above the <data:post.body/> tag.

<div style=’float:right; margin-left:10px;’>
<script src=”http://widgets.fbshare.me/files/fbshare.js”></script>
</div>


Now the customization part:

1.<div style=’float:right; aligns the button to the right. set it as left if you want it on the left hand side of the post.
2.the above code was pasted above the <data:post.body/> tag. So if you want the retweet button in the bottom section of your post. Place the code below <data:post.body/>

3.size – The size of the button: ‘large’ OR ‘small’ (if not specified, defaults to ‘large’)
4.url – The URL of the page you want shared on Facebook (if not specified, defaults to that of the page on which the button is displayed)
5.title – The name of the page you want shared on Facebook (if not specified, defaults to that of the page on which the button is displayed)
6.google_analytics – If no awesm_api_key specified, sets whether fbshare.me links have Google Analytics parameters added: true OR false (if not specified, defaults to false)
7.awesm_api_key – For existing awe.sm customers only (if not specified, will use fbshare.me links)

For example a customised Small facebook share count button code looks like.

<div style=’float:right; margin-left:10px;’>
<script>var fbShare = {
url: ‘http://chethstudios.blgospot.com/’,
size: ‘small’,
google_analytics: ‘true’
}</script>
<script src=”http://widgets.fbshare.me/files/fbshare.js”></script>
</div>

You can also get a free subscription to Chethstudios updates. We will be back with more useful content. Get latest hacks and updates on your email
Download the testking 642-691 design tutorials and testking 642-262 guide to learn how to create user friendly web layouts. Become expert using testking JN0-331 free resources.












Related Posts

UpSide Free Blogger Templates (5 Theme Styles)

Q-Metal Blogger Theme | Blogspot Templates

FIFA World Cup 2010 Blogger Template

Huge Compilation of Best Blogger Templates Released in 2010 | Blogspot Toolbox

Monkeypr Blogger Template

Masipag » Blogger Template

Fluid Blogger Template

Blogger Template | Red Light (Physics)

Zexee Blogger Template

Blogger Toolbox: Fresh, Free and Stunning Blogger Templates

50 Comments

  1. Alter Dimension

    09.22.2009

    Reply

    ur blog is wonderful

  2. gautam

    09.22.2009

    Reply

    I so needed this. thanx
    Had seen it on mashable was trying to look for it

  3. cheth

    09.22.2009

    Reply

    @Gautam,

    Same here bro, I've seen the mashable site they use an image and not exactly a counter right? This one has a nice counter updated realtime using the API :)

  4. Rahul Jadhav

    09.22.2009

    Reply

    Thats nice buddy. It looks great

  5. DarkUFO

    09.23.2009

    Reply

    Thanks very much, very useful.

  6. Thanks, It's helpful for my template… :)

  7. manikandan

    09.23.2009

    Reply

    hi cheth this one is looking gud.Thanks for sharing

  8. raj

    09.23.2009

    Reply

    hey cheth there is no such code in my blog data:post.body, well i also did expand widget templates but could not find the code there, now what should i do friend its for my blog http://www.webprogrammingscripts.blogspot.com. plss reply soon

  9. gautam

    09.23.2009

    Reply

    @cheth i like the counter but when i share it doesn't show any image plus it just shows feedshare.me which might not be good for sharing

  10. great work this is one thing that we all need to know thanks for sharing :D

  11. Average Joe

    09.23.2009

    Reply

    Love it! Been looking for something similar.

    @gautam I got the option for an image on my share. Try it again?

  12. cheth

    09.23.2009

    Reply

    @Gautam

    I think I too got an image when i shared it on FB.. you saw my status right? it had that facebook leaf.

    @Average Joe

    Yes.

  13. Average Joe

    09.23.2009

    Reply

    Hmmm, I can't get the code to work in my wordpress theme (I prefer not ot use plugins if possible).

    And if I try to download the plugin your site times out? Is it struggling with the load?

    @stuartflatt

  14. cheth

    09.23.2009

    Reply

    @Stuartflatt

    I think their website is down due to heavy traffic.. hope to be fine soon.

  15. FAQPAL

    09.24.2009

    Reply

    I use something similar, but handed coded. I prefer to use sharer.php as opposed to what these guys are using share.php.

    Good post.

  16. Courtney Engle

    09.25.2009

    Reply

    I'm using wordpress – and like your layout, would like to have it display below the tweetmeme button. How can I adjust it to do so?

    http://odcblog.com = wpmu 2.8.4, thesis 1.5.1

  17. cheth

    09.26.2009

    Reply

    @Courtney Engle

    Use a br tag to seperate the tweetmeme button and facebook share count button

  18. Technobuzz.net

    09.27.2009

    Reply

    THanks Cheth for this. looking for this for my Blog rom Long Time

  19. Ivan

    09.27.2009

    Reply

    This is sweet! It actually shows the number of shares on FB facebook. Thanks chethstudios

  20. E

    09.29.2009

    Reply

    If I have more than two thumbs I'd be happy to "up" them! Props to you man!

  21. VISHAL

    09.29.2009

    Reply

    Hi, I’m glad that I came across your blog. You have some very useful and interesting posts there. I will put a link to your blog from my site, if this is okay with you.

    I am also running a blog with technical stuffs out there, have a look to ma blog.

    Link : http://www.techbucket.org

    If you could possibly place a small link of my site, that would be really great. Have a great day and hope to hear from you.

    Happy Blogging.

    Thanks & Regards:

    VISHAL S GAIKAR | http://www.techbucket.org

  22. Jason Yormark

    09.30.2009

    Reply

    What do you have to edit to make it so that the this button appears below the tweetmeme button if you are using the wordpress plugins?

  23. Thanks for the tutoorial

  24. Anne Fox

    09.30.2009

    Reply

    LOL Facebook is threatened by twitter's features? Well, twitter is undeniably very useful to all people. Best proven with most webmasters out there. I'm not surprised if FB did soemthing about this. FB must protect their interest in their market, especially there are other popular sites competing with them.

  25. manS

    10.02.2009

    Reply

    I actually first saw it on mashable.com
    will be in my blog soon…

  26. cheth

    10.02.2009

    Reply

    @manS

    Everybody saw that plugin on mashable first. But nobody knew how to install it. We were one of the first people to write a tutorial on this. FYI

  27. Shurandy Thode

    10.04.2009

    Reply

    Thanks for sharing.

  28. Christine

    10.07.2009

    Reply

    I'm using WordPress and I actually asked the developer about how to adjust it so it appears right below the Tweetmeme button. You need to adjust the Wrapper style to this:

    bottom:-65px; float:left; left:-62px; margin-bottom:65px; margin-right:-52px; position:relative;

    Now does anyone know how to tweak it so it appears only on posts, not pages? Developer said plugin could be tweaked to do it but didn't say how…thanks!

  29. How facebook will better perform on blog in future?Can any one say pls..

  30. Anonymous

    10.11.2009

    Reply

    Hi there!

    I proceeded according your instructions and the button shows real nice, but there is a problem, it doesn't show the URL of the page I want shared on Facebook.

    Will appreciate any suggestion as to solving this issue.

    Aryeh

  31. cheth

    10.11.2009

    Reply

    in the code remove the
    url:'http://chethstudios.blogspot.com'
    it will tweet post pages as you need it. let me know if this doesnt work for you!

  32. Wesley Soccer

    10.12.2009

    Reply

    I use blogger and would like to get the facebook button underneath my tweet this botton…please help and great post.

    http://www.wesleysoccerblog.com

  33. The M & M Team

    10.16.2009

    Reply

    I have a problem…

    When people click on the share button, it opens the facebook share screen. Shows the title of my post, but the description is from someplace else on my blog. I can edit it, but most people want to just click share and share again.

    I noticed that this is happening on this post too!

  34. cheth

    10.16.2009

    Reply

    we know that, but as far as this plugin is posting the title and part of the blog post we are happy with this plugin.
    why bother until it posts some text from your blog post? i didn't get your question.

  35. The M & M Team

    10.16.2009

    Reply

    Yes it posts the title, but the problem is that it is not posting part of my blog post. It's posting part of the Home Page text.

    On this post, it looks like its posting text from another post that you wrote:

    "Not Just a Design Blog. Its much more! Filled with pure awesomeness from design to coding to Social media scraps"

    Click the share button on this post. You'll see what I mean.

  36. cheth

    10.16.2009

    Reply

    it isn't posting text from another blog post. that is the text from meta description. it posts the meta description in your case too, i guess.

  37. The M & M Team

    10.16.2009

    Reply

    Nope… don't have any meta tags set up… The share button is pulling the description from my home page content. See for yourself:

    http://www.themmteam.com/2009/10/gap-between-list-price-and-sales-price_15.html

    Thanks

  38. cheth

    10.16.2009

    Reply

    Hmmm… but in my case its posting the meta description from the template header.

  39. Michael de`Oz

    10.16.2009

    Reply

    Thanks!

  40. TheFamousMillionaire

    10.17.2009

    Reply

    Great Tuts! Than you :)

    ———————————————
    http://greatsalesstrategy.blogspot.com

  41. robert pattinson

    10.17.2009

    Reply

    Thanks for the info.. i'm still figuring it out coz when i tried to place the script, the facebook share is not the same as yours..

  42. api for sms

    10.18.2009

    Reply

    So great a resource. No wonder more followers tend to click just like the process in sending bulk messaging: in a jiffy.

  43. PeterK

    11.05.2009

    Reply

    Are more people having the issue of the share count not showing upon page refresh? Even on this site, when I load this page, the share count doesn't show until I press the fb button.

  44. cheth

    11.05.2009

    Reply

    @PeterK The facebook share counter used in my blog is the official facebook share counter. http://www.chethstudios.net/2009/01/official-facebook-share-counter-blogger.html

    Yes the offcial facebook counters are designed so that they are hidden on page refresh.. try http://www.chethstudios.net/2009/09/facebook-share-count-button-blogger.html this doesnt hide. but its not the official share button by facebook.

  45. Bloodpantha

    12.25.2009

    Reply

    thats cool! I knew how to put a facebook add as a friend button but this is new for me. Thnx for the know-how

  46. Dainis

    04.23.2010

    Reply

    How to Add Facebook Like Plugin widget Blogger and WordPress

  47. Dainis

    04.23.2010

    Reply

    I would like to see a tutorial on how to add Facebook "Like" buttons like you have added in your blog. Thanks!

  48. cory

    05.08.2010

    Reply

    I like this alot. Can you tell me how you created your left sidebar (with the tweetmeme, facebook, etc buttons in it?) It looks like it is dynamic per post as well. How did you do that?

  49. cheth

    05.08.2010

    Reply

    @ cory

    You can get the official facebook share counter here > http://www.chethstudios.net/2009/01/official-facebook-share-counter-blogger.html

    and to create the social icons to float on the left you can use this guide created by one of our readers

    http://www.techpupil.com/2010/05/add-floating-share-widget-to-blogger.html

  50. zul

    08.08.2010

    Reply

    thanks very much…

Leave a Reply









Recent Tweets

Follow Me On Twitter →

Email Updates

Get all our latest posts delivered right to your mailbox.