Simple Custom Domain Tweet Button With Bit.ly Pro

| No TrackBacks

Useful tip on the bit.ly blog about how to use your own custom short domain for link sharing via the Twitter Tweet Button in conjunction with bit.ly Pro:

For smaller publishers who cannot cache links on their backend, we are now providing a simple JavaScript wrapper for sharing bit.ly links using the Twitter Tweet Button:

<script src="http://api.bit.ly/v3/twitter_tweet_button.js?login=bitlyapidemo&apiKey=R_0da49e0a9118ff35f52f629d2d71bf07" type="text/javascript"></script>
<div>
<a href="http://twitter.com/share" class="twitter-share-button">Tweet</a>
</div>

Be sure to use your bit.ly login and API Key (which you can always find at http://www.bit.ly/a/your_api_key) with the code above.

This implementation simply shortens the page URL and then displays the Twitter Tweet Button in its standard fashion. All Tweet Button functionality is maintained. And, since our JavaScript wrapper uses your bit.ly login and API Key, it will automatically return custom bit.ly short domains for Pro and Enterprise users.

Need a short domain name for your own URL shortener? These domain extensions allow 2-letter domain registration.

blog comments powered by Disqus
Subscribe to feedFollow this blog (RSS)

or get news via email:

Twitter