bengottlieb / Twitter-OAuth-iPhone

An easy way to get Twitter authenticating with OAuth on iPhone
http://www.standalone.com
799 stars 155 forks source link

Delegate receives nil values on iOS5 SDK #78

Open ericflo opened 13 years ago

ericflo commented 13 years ago

All the callbacks that I'm using (like storeCachedTwitterOAuthData:forUsername: and OAuthTwitterController:authenticatedWithUsername:) are getting nil in the parameters.

Going up the stack, it seems that the data received in setAccessToken:withData: is receiving nil from the data.

I attempted to dive in and find out why that was happening, but wasn't able to do so.

peetz commented 13 years ago

I am experiencing exactly the same issues. Any fixes yet?

jandrad commented 12 years ago

I don't know if it is related but I changed http to https on the SA_OauthTwitterEngine.m and now it's working fine!

self.requestTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/request_token"]; self.accessTokenURL = [NSURL URLWithString: @"https://twitter.com/oauth/access_token"]; self.authorizeURL = [NSURL URLWithString: @"https://twitter.com/oauth/authorize"];

petershine commented 12 years ago

Using "https" like above DO fix the problem. Thank you, @jandrad

mobihunterz commented 12 years ago

I did the same, used https:// but on iPad 2, iOS 5.1, login screen is not being opened. It shows me access token is old or expired, go back to the main page. But I had just created access token..!