Is there a way to make twitter generate a shortened version of my url when using a custom button (according to: https://dev.twitter.com/docs/tweet-button#build-your-own).
I don't need any counters, I just want to share a text, shortened url and a hashtag.
var twUrl = 'http://twitter.com/share?count=none&text=' + encodeURIComponent(text) + '&url=' + url + '&hashtags=' + encodeURIComponent(hashtags);
window.open(twUrl, 'sharer', 'toolbar=0,status=0,width=650,height=254');
Thanks!