tweeting in an app

Something that many developers do, or would like to do is implement some sort of mechanism to allow their users to share their apps using a social networking site like twitter. Typically the users will have to either enter their information, or need to authenticate through the twitter website, and being able to do this should greatly increase the rate at which people can tweet. I found a great article today on a technique for sending tweets that requires the user to do neither.

The article entitled Tweeting From an Ad on the iPhone Using URL Schemes takes advantage of the fact that many twitter apps on the iPhone have their own custom URL Scheme. This means that you can simple create a link using their custom URL scheme, and when the user clicks a tweet is sent. This sounds great, however there are some weird nuances to work through so be sure to check out the article to see the Javascript that was finally settled on which you can tweak to your own apps avoiding the trial and error that the author had to go through.