Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

storeCachedTwitterOAuthData not being called #95

Open
Hoya opened this issue Dec 9, 2011 · 5 comments
Open

storeCachedTwitterOAuthData not being called #95

Hoya opened this issue Dec 9, 2011 · 5 comments

Comments

@Hoya
Copy link
Contributor

Hoya commented Dec 9, 2011

storeCachedTwitterOAuthData doesn't seem to be being called on twitter login.
tested on Xcode 4.2.1. with iOS 5.1

@crsantos
Copy link

Same issue here

@nicolas-miari
Copy link

Same here... trying to find out why/fix it...

@nicolas-miari
Copy link

OK, the (optional) delegate method << - twitterOAuthConnectionFailedWithData: >> gets called with the following data as the parameter:

Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x91067f0 {NSErrorFailingURLKey=http://twitter.com/oauth/access_token, NSErrorFailingURLStringKey=http://twitter.com/oauth/access_token, NSUnderlyingError=0x9119cb0 "The operation couldn’t be completed. (kCFErrorDomainCFNetwork error -1012.)"}

A google search reveals that "Error -1012" means "NSURLErrorUserCancelledAuthentication" (source: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Miscellaneous/Foundation_Constants/Reference/reference.html)

I'll dig deeper to see why this is so...

@nicolas-miari
Copy link

OK, sorry for the flood. Found the solution at StackOverflow:

http://stackoverflow.com/questions/7862199/sa-oauthtwitterengine-twitter-authentication-on-ios-5-error-1012

...the solution basically consists of change three lines in -initOAuthWithDelegate:, the three URLs from "http" to "https".

@kashiftriffort
Copy link

Thanks for the answer. It really help me a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants