Twitter Log In Problem

cf_android
@cf_android Android Hunter

Cannot Login to Twitter using MGTwitterEngine. It is giving an error rror Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. Yesterday everything was fine. Having this problem since today morning. Seeking help regarding this issue.

1 year 1 week ago

Replies

Mahsaeeeee
@Mahsaeeeee Mahsa

1012

1 year 1 week ago
cf_android
@cf_android Android Hunter

Do you know why i am getting this error?

After providing all the infos for logging in I am getting this error here.

  • (void) outhTicketFailed: (OAServiceTicket *) ticket data: (NSData *) data {
    if ([_delegate respondsToSelector: @selector(twitterOAuthConnectionFailedWithData:)]) [(id) _delegate twitterOAuthConnectionFailedWithData: data];
    }

The response I am getting is:

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

1 year 1 week ago
episod
@episod Taylor Singletary

The error you're getting looks to be coming from your library, not Twitter.

Make sure that your library performs OAuth correctly:

  • You must pass an oauth_callback value to oauth/request_token. It's not optional. Even if you have one already set on dev.twitter.com. If you're doing out of band OAuth, pass oauth_callback=oob.
  • You must pass along the oauth_verifier you either received from your executed callback or that you received hand-typed by your end user to oauth/access_token.
1 year 1 week ago
cf_android
@cf_android Android Hunter

Thanks for your reply @episod. I solved the problem. It is working fine now.

1 year 1 week ago
koombeatest
@koombeatest Koombea Tester

and what was your solution?, Im having the same problem.

1 year 1 week ago
katharcse
@katharcse kathar ks

Please post the Solution..that problem is killing me over a week.

1 year 2 days ago
riyaz_ahemd
@riyaz_ahemd Riyaz Ahemad

post solution. I am facing the same problem.

50 weeks 2 days ago
tiendh11986
@tiendh11986 tiendh

Please giving a solution, I'm getting stuck with this issue

50 weeks 1 day ago
profyledotcom
@profyledotcom Profyle

anyone solved it? I am having the exact same one.

44 weeks 3 days ago
petrocket
@petrocket Alex Peterson

For anyone getting this error, I was having this problem with the request_token url, not access_token - and the fix for me was to put in a dummy callback URL in my app settings on dev.twitter.com

If that field is blank you get a -1012 error

Still haven't fixed it for the access_token url yet

38 weeks 2 days ago