0

The method I'm using is:

[STTwitterAPIWrapper twitterAPIWithOAuthConsumerName:@"<Value>" consumerKey:@"<Value>" consumerSecret:@"<Value>" username:@"<Value>" password:@"<Value>"];

When I'm using the example given:

consumerName:'TweetDeck',
consumerKey:'yT577ApRtZw51q4NPMPPOQ'

as parameters, it works and returns Twitter results. When I'm using my own app's consumerName, consumerKey and consumerSecret it returns the error below.

The error log is:

Unhandled authentication challenge type - NSURLAuthenticationMethodOAuth2
-- Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0xa6d4fb0 {NSErrorFailingURLKey=https://api.twitter.com/oauth/access_token, NSErrorFailingURLStringKey=https://api.twitter.com/oauth/access_token}

Something wrong here?

4

1 回答 1

1

README中所述,您的消费者令牌可能未启用 xAuth。您可以在 Twitter 网站上阅读更多内容,并要求 Twitter 为您的消费者令牌启用 xAuth 身份验证过程。

于 2013-07-15T08:49:49.290 回答