Simple Twitter Connect
bit.ly is also shortened to t.co which is not expected (2 posts)

  1. Ruben Woudsma
    Posted 5 years ago #

    On my own website I am using 'Simple Twitter Connect' now with the Tweet Button functionality.

    As I would like to use bit.ly as shortening service I installed the WP Bit.ly plugin so the core short url functionality will retrieve the bit.ly shortened URL. This works great, but when clicking the Tweet Button in e.g. this post the following is shown: http://tweetphoto.com/39223525

    Looking into the source of the website, I see that the data-url is supplied correct:

    <a href="http://twitter.com/share" onclick="javascript:_gaq.push(['_trackEvent','outbound-article','twitter.com']);" class='twitter-share-button' data-text='Customizing WordPress theme Mystique' data-url='http://bit.ly/cie7mS' data-counturl='http://rubenwoudsma.nl/customizing-wordpress-theme-mystique/' data-count='vertical' data-via='rubenwoudsma'>Tweet</a>

    Does anyone know if this is a bug or a feature of Twitter.com? And how about the count then? What will Twitter count? The data-counturl? But that is behind two shortening services.

    Hopefully someone can clear this out?


  2. Samuel Wood (Otto)
    WordPress.org Tech Dude
    Plugin Author

    Posted 5 years ago #

    Twitter doesn't have an option to use other shortening services yet, it forces you to use t.co for everything.

    However, the bit.ly link you're using will be the one that shows up on the twitter website.

    The counturl is used to get the count for a particular URL from Twitter. And they can demystify many different shorturl services to get at the right URL, so that's not something to worry about.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic