How do I authenticate a Twitter user and access the API without leaving my iPhone app?

Posted by thebossman on Stack Overflow See other posts from Stack Overflow or by thebossman
Published on 2010-04-28T04:05:54Z Indexed on 2010/04/28 4:13 UTC
Read the original article Hit count: 318

Filed under:
|
|
|
|

I'd like to allow users to send out Tweets from my iPhone app. That's all the functionality I need at the moment.

From what I know of the Twitter API, there's a standard authentication mechanism, which allows the developer to include the user's name and password in the request string that the application sends to Twitter. This method will no longer be supported come June 30, 2010.

Given the timeframe, the better other choice is oAuth. One of the caveats of oAuth is that it requires a UIWebView to pop up within the app to allow the user to enter his or her credentials or a PIN number.

None of the Twitter apps on my phone do this, however: Tweetie, TweetDeck and Twitterific. I assume they're using the first authentication method, but it seems like Twitter wouldn't deprecate an API that would hurt the user experience across the board.

There must be an alternative method--what am I missing?

© Stack Overflow or respective owner

Related posts about twitterapi

Related posts about twitter