More Tips for Using bit.ly with Publishing Tools
As promised, we have put together some additional tips for using bit.ly with a number of popular cut-and-paste sharing buttons and widgets including the Twitter Tweet Button.
Please visit our guide to Third-Party Tools For Publishers. This page includes working examples and code snippets for the most popular sharing tools.

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.
If you have any questions about using bit.ly with this or any other publishing tools or platforms - or have your own tips or tricks for using bit.ly with the sharing tools of your choice - do not hesitate to contact support@bit.ly!
2 years ago