I have been helping out a friend that needed to add a Twitter button to a number of different pages. I could find lots of complex ways of doing this but not much in the way of reliable copy & paste solution that would capture the page title and also shorten the URLs.
I decided the easiest thing to do would be to put together a simple ASP.net web app that performed the URL trim, formatted the message and then redirected the user to twitter. I already knew I could use JavaScript to capture the page URL and Title.
After grabbing a bit.ly API key I found this .net DLL that makes working with the API super simple. Then I knocked up a simple button in English and Norwegian (for my friend).
The code to display the button is here and feel free to add it to any page you wish to be easily tweetable.
Incidentally, I made the button the same size as the ‘Share on Facebook’ button so they will sit nicely together. I will try to do some more buttons at some point.


The Poker Tree is launching their national pub and bar poker gaming concept throughout the UK in July 2009. With hundreds of pubs already on board and more signing up every day, the poker league will be reaching all corners of the country over the coming months.
















