Reputation: 1945
I'm using SA_OAuthTwitterEngine and it works fine for some accounts. But, gives (NSURLErrorDomain error -1012.) for some twitter accounts.
It seems to work fine on ios 4. But not on iOS 5. anyone notices this problem?
Any hints?
Thanks
Upvotes: 5
Views: 2569
Reputation: 2585
@NSDestroyer is correct. Just ran into this today, and changing to https solved the issues. Thanks!
Upvotes: 0
Reputation: 1449
Yes... Change http to https in the initOAuthWithDelegate
method inside SA_OauthTwitterEngine.m and this should fix the problem - like so:
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"];
Upvotes: 12
Reputation: 1584
try find&replace http://twitter.com/oauth/ with https://twitter.com/oauth/ 3x
Upvotes: 2