<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jim Wild's Blog &#187; bookmarklet</title>
	<atom:link href="http://jimwild.net/index.php/tag/bookmarklet/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimwild.net</link>
	<description>General thoughts, work &#38; music of a creative dev guy working in mobile social media.</description>
	<lastBuildDate>Wed, 10 Mar 2010 20:38:31 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Automatic Twitter &#8216;Tweet This Page&#8217; Button with Bit.ly URL Shortening</title>
		<link>http://jimwild.net/index.php/2010/01/19/automatic-twitter-tweet-this-page-button-with-bit-ly-url-shortening-2/</link>
		<comments>http://jimwild.net/index.php/2010/01/19/automatic-twitter-tweet-this-page-button-with-bit-ly-url-shortening-2/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 00:02:17 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[asp.net]]></category>
		<category><![CDATA[bit.ly]]></category>
		<category><![CDATA[bookmarklet]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://jimwild.net/?p=300</guid>
		<description><![CDATA[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 &#38; paste solution that would capture the page title and also shorten the URLs.
I decided the [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fjimwild.net%2Findex.php%2F2010%2F01%2F19%2Fautomatic-twitter-tweet-this-page-button-with-bit-ly-url-shortening-2%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fjimwild.net%2Findex.php%2F2010%2F01%2F19%2Fautomatic-twitter-tweet-this-page-button-with-bit-ly-url-shortening-2%2F" height="61" width="51" /></a></div><p>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 &amp; paste solution that would capture the page title and also shorten the URLs.</p>
<p>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.</p>
<p>After grabbing a <a href="http://bit.ly/account/your_api_key/">bit.ly API key</a> I found <a href="http://sites.google.com/site/bitlyapp/">this .net DLL</a> that makes working with the API super simple. Then I knocked up a simple button in English and Norwegian (for my friend).</p>
<p>The code to display the button is <a href="http://mobhub.net/TweetIt/">here</a> and feel free to add it to any page you wish to be easily tweetable.</p>
<p>Incidentally, I made the button the same size as the &#8216;Share on Facebook&#8217; button so they will sit nicely together. I will try to do some more buttons at some point.</p>
<p><a href="http://mobhub.net/TweetIt/"><img src="http://mobhub.net/stuff/eng.gif" border="0" alt="Tweet This" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jimwild.net/index.php/2010/01/19/automatic-twitter-tweet-this-page-button-with-bit-ly-url-shortening-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
