开发者

Has anyone successfully used MPOAuth on iPhone to connect with twitter?

My project builds fine but when it gets开发者_运维知识库 to line pasted bellow it crashes with the following message.

CODE:

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

ERROR:

Assertion failure in -[MPOAuthAuthenticationMethodOAuth initWithAPI:forURL:withConfiguration:], /Project/MPOAuth/MPOAuthAuthenticationMethodOAuth.m:49

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Incorrect number of oauth authorization methods'


twitter now uses OAuth as authentication mechanism. You will have to change your oauthAutoConfig.plist

The entry for twitter should look like this

Has anyone successfully used MPOAuth on iPhone to connect with twitter?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜