Search code examples
twitterizer

Status is over 140 characters


I'm looking at using Twitterizer in my app. I've got it working, however, if a post is made with a URL taking it over 140 characters, twitter does not auto shorten the url with t.co.

Basically, I'm limiting user text entry to 125 characters and then adding the url. This, however, takes it over the 140 character mark. I noticed that LinqToTwitter has a wrapLinks parameter on their UpdateStatus method, with the following description "Shorten URLs with t.co wrapper." is there something similar with Twitterizer?

I was hoping that I could limit user entry to 120 characters to take into account the 20 character url by t.co. And add the url to the end of the post, as there will always be a url in the status update.

[Update] This is the basic question

When using Twitterizer is there anyway to get Twitter to automatically shorten the url that is in the tweet. Thus enabling me to send a tweet that is over 140 characters. So the tweet would be made up of the following 120 characters being the tweet characters 121+ would be the url


Solution

  • I was under the impression that Twitter's link shortening would be all on, or all off. Looking into this question I now see that currently there is a parameter that instructs Twitter to shorten links. Twitterizer doesn't currently have this parameter, but I will add it shortly.

    Eventually, Twitter will make shortening links the default behavior.