How to setup Tweetdeck with YOURLS

I’ve been a long time fan of YOURLS, a small set of PHP scripts that will allow you to run your own URL shortening service, you know, just like bit.ly and I’ve grown very acustomed to Tweetdeck as my main Twitter client.

If you have the latest version of YOURLS (version 1.4.3 at the moment) running somewhere on a server you can now set it up with Tweetdeck so Tweetdeck will use your favorite URL shortening service.

You will need to go to your admin panel of your YOURLS install, which should be something like http://sho.rt/admin Via your menu go to tools and there you will find your personal secret signature token under the heading called ‘Secure passwordless API call’. This is like a password so don’t be sharing it anywhere you shouldn’t ;) .

Now go to Tweetdeck and go to Settings > Services and select Other when asked to select the service you wish to use to shorten URLS with.
tweetdeck-settings-services

All you need to do now is create a very specific url including your secret key from your YOURLS tools admin.

[html]http://sho.rt/yourls-api.php?signature=XxXxXxXxXx&action=shorturl&format=simple&url=%@[/html]

Of course you do need to replace the xx’s with your secret keys, but really this is all you need to paste into that settings box.

Happy shortening!

Comments

        • says

          Yes i did but it doesn’t help me with my own Google Apps domain url shortening (google labs) service implementation.
          But i’m sure i’m the problem here with my lack of knowledge on this subject :)

      • says

        I’m just trying to find out if it’s possible using the Google Apps own domain url shortening service :)
        Would be the perfect automatic url shortening service in Tweetdeck :)

        ps: your reply speed is amazing ! :)

        • says

          Thanks :) This one took longer, lol. I’m not familiar yet with the Google Apps version so I can’t help you out with that, sorry. Are you sure YOURLS isn’t something you’d like?

  1. says

    Thank you! Just got YOURLS working on my server, and with this tip I’ve got Tweetdeck playing along. Cheers!

  2. says

    Very nice. I had the majority of it but what I was missing was the format=simple. Sometimes its the little things that make it all work.

    Thank you

  3. says

    I can’t get this to work at all.

    It works if I paste the command into firefox’s address bar with a url (returns a string of the shortened url) – but tweetdeck just wont do anything with a typed in url.

    I’ve tried everything, clicking the link (supposed to toggle between the short/long) doesn’t, tried turning shortening off/on

    any ideas?

    SC

    • says

      You are using the last version of Tweetdeck? The whole process shouldn’t be more than a copy and paste action minus the editing of your own key..

      • says

        Yup, just downloaded the newest version v0.35.1 to make sure.

        If I look at the yourls admin page I can see the created short link, so that’s working but Tweetdeck just never replaces it’s text with it.

        SC

        • says

          Found the problem. One of my plugins had a new line after the closing <?php which meant that I got a blank line as output before the shortened link ie:

          "

          http://doma.in/shortlink&quot;

          Took it out, problem solved. I have to say tweetdeck was no help in solving the problem. Even after turning debug on it didn't even mention the short link error (although it was reported on screen – there was no detail :( )

          SC

        • says

          Hello all,
          Remkus, many thanks for this post! Very useful, exactly what I was looking for.
          But I had the same problem as you, ScaredyCat ; I read your last comment but I dont understand what kind of plugin you’re talking about… I haven’t installed any plugin on TweetDeck. Or have I ?
          Thank you for answering if you still follow this topic ;-)

        • says

          OH YEAH ! I just understood that you were talking about YOURLS plugins.

          For info, none of them were active when I had this problem. I activated “Allow Hyphens in Short URLs” (and “Random Backgrounds” for fun;-) ), and everything is OK.

          Thanks !

  4. says

    Hi,

    I’ve tried over and over again but I am getting the ‘shortening problem’ on Tweetdeck. I’ve checked and double checked my secret codes, my URL, etc and it all seems right.

    FYI I am using YOURLS 1.5 with Tweetdeck v0.36.1

    Any ideas?

    Thanks,
    Norwin

    • says

      Incidentally, it does create the shortened URL in my YOURLS admin interface, but does not replace the long URL in Tweetdeck.

      I’m also using GoDaddy, if that makes a difference?

      • says

        I have no idea to be honest. Especially if your url’s are generated.. sounds like indeed a server setup issue or rather something funky going on with your Tweetdeck install.

  5. Mak says

    Hi!
    Did you try to add on tweetdeck domain without “http://” ?
    For example I notice that YOURLS and tweetdeck cant shorten urls like:
    google.com(I get an error message from tweetdeck that url not shortened)
    or
    http://www.google.com (I get a shortening complete message from tweetdeck while nothing was shortened)

    Am I the only one with this issue?

  6. says

    Our API for tweetdeck doesn´t work when the original url ends in “.com” or “.com.br”
    We noticed that it works perfectally with domains ended in “.br”
    What´s is going on ? Could you please, help us to fix it ?

    Best regards,
    Alex Barbosa

  7. says

    Hi mate – firstly, thank you for this walkthrough. It works perfectly for me

    I have a question however. I’m not brilliantly acquainted with using api’s (my tech knowledge is limited to html and css!)

    Quite a few people have asked me whether they can use it themselves with tweetdeck…obviously I don’t want to keep giving out my API key. What string would I have to add to tweetdeck, so that it works without an api key?

    I appreciate all your help…and realise that this is a *little* off track :-S

    • says

      Well, I’m not sure what you are asking here. Those few people that have asked you would need to have a YOURLS setup in place themselves for them to add a personal secret to the string. Is that what you’re asking?

  8. Felix says

    EXCELLENT post! Thank you… Exactly what I was looking for and worked the first time around!

  9. says

    I too was having problems getting this to work with Tweetdeck however I noticed that when I would put in a URL to be shortened Tweetdeck would notify me that they were shortening it. But it never would be. That is until I actually clicked on the URL in the message. Then it turned into the shortened URL.

  10. SJ says

    Remkus,

    It seems that most of the options were removed from tweetdeck. Options to add custom Shortener, WordPress based sites were also disappeared.

    May I know if you are using a different version which you are able to see those options?

    Thank you!

    • says

      I am using a different version now, yes. The old – yellow – version of Tweetdeck still supports this, but the new – blue – one does not anymore.

Leave a Reply