【发布时间】:2011-12-23 06:11:38
【问题描述】:
我的项目构建良好,但是当它粘贴到下面的行时,它会崩溃并显示以下消息。
代码:
oauthAPI = [[MPOAuthAPI alloc] initWithCredentials:credentials
authenticationURL:[NSURL URLWithString:@"https://twitter.com/oauth/"]
andBaseURL:[NSURL URLWithString:@"https://twitter.com/"]];
错误:
断言失败 -[MPOAuthAuthenticationMethodOAuth initWithAPI:forURL:withConfiguration:], /Project/MPOAuth/MPOAuthAuthenticationMethodOAuth.m:49
由于未捕获而终止应用 例外 'NSInternalInconsistencyException', 原因:'不正确的oauth数 授权方法'
【问题讨论】:
-
AFAIK - 您必须对 api.twitter.com 进行身份验证和其他 api 请求,而不是直接对 twitter.com 进行。不过可能是错的。
标签: iphone objective-c oauth