URL Encode a Twitter Status Message

Updated 5/23/2013: Thanks @Jason Coleman:

For anyone wondering, the /home/?status= URLs don’t work anymore. You need to use the “intent” URLs. e.g.

http://twitter.com/intent/tweet?text=This+is+a+tweet.

You may have seen Twitter contests where to enter you need to “Click Here to Retweet” a certain message. Here is how it is done!

You can add a custom message to the Twitter URL as a link like so:

http://twitter.com/home?status=Custom%20Message%20Here

When you click it, you will be brought to your Twitter home page (if you are logged on already) and the status box will now say “Custom Message Here”. Obviously you can put in whatever text you wish to be displayed.

What do you do if you want to put spaces, hashtags, slashes and other special characters in your message? You can use an URL Encoder like this to do the work for you.

When you encode the URL, be sure to append it to http://twitter.com/home?status=

Share the love, Tweet this article!!

If you would like to follow me on twitter click here.

17 thoughts on “URL Encode a Twitter Status Message

  1. I spent hours trying to figure this out. I knew that I had everything in place.

    Just so everyone knows who is doing this, if you have “www.” in your line, then it will keep the %20 when the page opens. I took it out and everything works perfectly.

    Thanks for the post.

  2. Well that is odd.

    I hit on the “tweet this” link and opened the twitter page with a message in the box like this: “Hello, blah blah blah”

    I didn’t even have to do it like (as suggested): “Hello,+blah+blah+blah”

  3. If you’re not already logged into Twitter when you click on the link, it redirects you to the log-in page, and the tweet is lost. Anyone know if there’s a way to make it so the tweet shows up in your box AFTER you log in?

  4. What about return urls? I want to throw up a status and then have it jump back to my personal landing page. Any way to do it without coding?

  5. @keith

    wow. I guess I should have read your comment first before I just spent hours on the same thing!! GAH!! Thanks for posting that comment, and great article, Geoff.

  6. For any people still stumbling across this:
    For newer twitter accounts, twitter must have the ‘home’ removed from the URL

    http://twitter.com/?status=

    Seems to be backwards compatible, but God knows where the Twitter folks documented this change…

  7. @Chad – Thanks for the tip. I have not seen that correction anywhere else.

    @Geoff – You have not updated the post with the correct link…

  8. Thanks Chad!
    I was wondering why my links didn’t work anymore. Removing “home” did the trick.

Leave a Reply

Your email address will not be published. Required fields are marked *