开发者

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

开发者 https://www.devze.com 2023-01-07 00:28 出处:网络
My project builds fine but when it gets开发者_运维知识库 to line pasted bellow it crashes with the following message.

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

精彩评论

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