有没有人成功使用iPhone上的MPOAuth与twitter连接?

时间:2010-07-14 23:11:29

标签: iphone objective-c oauth

我的项目构建正常,但是当它被粘贴到下面时,它会崩溃并显示以下消息。

CODE:

oauthAPI = [[MPOAuthAPI alloc] initWithCredentials:credentials
        authenticationURL:[NSURL URLWithString:@"https://twitter.com/oauth/"]
         andBaseURL:[NSURL URLWithString:@"https://twitter.com/"]];

ERROR:

  

断言失败    - [MPOAuthAuthenticationMethodOAuth initWithAPI:forURL:withConfiguration:],   /Project/MPOAuth/MPOAuthAuthenticationMethodOAuth.m:49

     

因未捕获而终止应用   例外   'NSInternalInconsistencyException',   原因:'不正确的数量   授权方法'

1 个答案:

答案 0 :(得分:1)

twitter现在使用OAuth作为身份验证机制。您将不得不更改您的oauthAutoConfig.plist

twitter的条目应该如下所示

enter image description here