jaanus / PlainOAuth

A plain OAuth library in Objective-C, and example app for iPhone.
180 stars 21 forks source link

Keep getting "token request did fail" #3

Closed michaelforrest closed 13 years ago

michaelforrest commented 13 years ago

Log in with Callback isn't working for me in the sample app. I've changed the urls to the api.twitter.com ones and still no bananas.

jaanus commented 13 years ago

Is PIN-based callback working? I checked that both work fine for me, so it must be something about your app. The URL callback-based flow is quite more involved to set up, please go through README very carefully and make sure you've done all the things listed there.

michaelforrest commented 13 years ago

PIN-based works but the URL callback doesn't. I've only been working with your app so far so I'm not sure what to try.

passarinho commented 13 years ago

Hi jaanus,

i've just cloned your project and I have a similar issue. All I did was open the project on xcode 4, paste my app's key and secret on OAuthConsumerCredentials.h and run the sample app on both ios 4.3 iphone and ipad simulators. I keep getting "token request did fail" on the token request step, when selecting callback flow.

Any ideias? Your project seems so much clean and better coded that Twitter+OAuth, I would love to use it.

tks in advance!

passarinho commented 13 years ago

I've figured it out. The problem was really in my app settings on twitter, I had to put any valid URL on the Callback URL field. As stated in the explanatory text just below the field: "To restrict your application from using callbacks, leave this field blank."

Maybe you could put this warning in your README. :)