Denis Smirnov
Denis Smirnov

Reputation: 43

How to obtain Twitter access token and secret on iOs?

What I've got: 1. RoR back end 2. iOs 6 app 3. Twitter ConsumerKey and ConsumerSecret that back end uses

What I whant: Add a Twitter sign in button to my iOs app that would allow me to authorize user and get his AccessToken and AccessTokenSecret to use in my back end part. I've been searching all over the web for a up to date working solution for almost a week but didn't found anything.

Facebook took almost 5 minutes to create a WebView and put there they oAuth url which gives token right into address bar after user authorization. Why the hell is Twitter is such an ass pain??

Help!! ><

Upvotes: 3

Views: 5396

Answers (1)

andreag
andreag

Reputation: 881

You need to use Reverse Auth to get the oAuth access token and access token secret as described in this tutorial.

You can find a working example here from Sean Cook, engineer at Twitter.

Upvotes: 6

Related Questions