Open Hoya opened 12 years ago
Same issue here
Same here... trying to find out why/fix it...
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...
OK, sorry for the flood. Found the solution at StackOverflow:
...the solution basically consists of change three lines in -initOAuthWithDelegate:, the three URLs from "http" to "https".
Thanks for the answer. It really help me a lot.
storeCachedTwitterOAuthData doesn't seem to be being called on twitter login. tested on Xcode 4.2.1. with iOS 5.1