Share Buttons are SO Easy!!
The viral aspects of the social web are all the rage these days. If you want traffic, the best and cheapest method to get it is to harness social media sites like Digg, Reddit, StumbleUpon, Twitter, Delicious and Facebook. Social medial sharing is the new, high tech version of word of mouth.
It was a no brainer for me to include share buttons on List Central, to make it easy for my users to spread the word about cool lists that they find. Fortunately, the developers at the big social networking sites have made it easy to add share buttons on your site. It took me less than a couple hours to set up share buttons for my 5 favourite social media site on List Central. The following is a breif summary of how to get going with share buttons for each of the sites I implemented:
Digg offers a page full of documentation to help you implement links to digg your stories on their Digg Integrate page. There are two facets to sharing stories on Digg: digging, and submitting a story that hasn’t previously been submitted. The good people at Digg have put together an easy to install script that figures out whether or not the story has been submitted previously, and takes the user who clicks on the icon to the appropriate place.
digg_url = ‘http://blog.listcentral.me/2009/04/06/share-buttons-are-so-easyshare-buttons-are-so-easy/’; digg_skin = ‘icon’;
digg_window = ‘new’;
</script> <script src=’http://digg.com/tools/diggthis.js’ type=’text/javascript’></script>
As the code above illustrates, Digg gives you the option to specify the url you want to be dugg, as well as the target of the link, and the digg skin for the share button. The skins available are ‘normal’, which looks like the Digg buttons on Digg itself that displays how many diggs the story has already, ‘compact’, which is a smaller version of the normal skin, and lastly, the one I like best, ‘icon’, which is displayed above.
Facebook offers brief, yet comprehensive documentation on how to create share buttons on the Facebook Share Partners page. The Facebook team has made the task of creating Facebook share buttons super easy with the script they provide, in that the developer only needs to add in the url of the page to be shared. Facebook also offers 4 options for how the share link can appear on your site, my favourite is the small icon shown above.
u=location.href;
t=document.title;
window.open(‘http://www.facebook.com/sharer.php?u=’+encodeURIComponent(u)+’&t=’+encodeURIComponent(t),’sharer’,'toolbar=0,status=0,width=626,height=436′);
return false;}
</script><a href=’http://www.facebook.com/share.php?’ onclick=’return fbs_click()’ target=’_blank’><img src=’http://b.static.ak.fbcdn.net/images/share/facebook_share_icon.gif?8:26981′ width=’16′ height=’16′ alt=” /></a>
StumbleUpon has a neat page with many options to help you build your share buttons on the StumbleUpon Buttons & Tools page. Once you build one link through the StumbleUpon builder, it is easy to see how to edit the code in order to make other share buttons for different links automatically. All that is needed is the link’s url and title.
Delicious also makes creating share buttons super easy with the scripts they have posted on the Delicious Save Buttons page. The code they provide requires no edits, as it works perfectly as it is. I did edit the code they provide for aesthetic reasons. I wanted to use only the Delicious icon as my share button, rather than the text “Bookmark this on Delicious” that the code Delicious provides includes, a fairly trivial change really.
Twitter is the exception, in that they do not provide documentation on how to create share buttons on your site, but their simple design makes it reasonably easy to figure out how to do it.
If the user is already logged into Twitter, when they click on a link w they will be taken to their twitter home page, with the Tweet pre-populated with the text you give it after the ‘status=’ in the link. As a developer, you can choose to use anything as the link text or image. For List Central, I chose the Twitter ‘t’ icon, which the good folks at twitter use as their favicon.














Discussion