0

I am trying to use STTwitter to post a tweet from my iOS app.

However when I try to login to the API using

self.twitter = [STTwitterAPI twitterAPIWithOAuthConsumerKey:_consumerKeyTextField.text consumerSecret:_consumerSecretTextField.text username:@"username" password:@"password"];

I get "Unhandled authentication challenge type - NSURLAuthenticationMethodOAuth" and "The operation couldn't be completed. (NSURLErrorDomain error - 1012)"

nst
  • 3,862
  • 1
  • 31
  • 40

1 Answers1

1

Your tokens are not XAuth enabled.

See STTwitter's README: https://github.com/nst/STTwitter#xauth

nst
  • 3,862
  • 1
  • 31
  • 40