0

私が使用している方法は次のとおりです。

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

与えられた例を使用しているとき:

consumerName:'TweetDeck',
consumerKey:'yT577ApRtZw51q4NPMPPOQ'

パラメータとして機能し、Twitter の結果を返します。自分のアプリの consumerName、consumerKey、consumerSecret を使用すると、以下のエラーが返されます。

エラーログは次のとおりです。

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}

ここで何か問題がありますか?

4

1 に答える 1

1

READMEで説明されているように、コンシューマ トークンはおそらく xAuth 対応ではありません。詳細については、Twitter Web サイトを参照してください。Twitter にコンシューマー トークンの xAuth 認証プロセスを有効にするよう依頼してください。

于 2013-07-15T08:49:49.290 に答える