首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >MGTwitterEngine Iphone oAuth

MGTwitterEngine Iphone oAuth
EN

Stack Overflow用户
提问于 2011-03-03 08:13:07
回答 2查看 1.6K关注 0票数 0

我已经尝试了来自源MGTwitterEngine的oAuth的https://github.com/kimptoc/MGTwitterEngine-1.0.8-OAuth

我正在为MGTwitterEngine oAuth使用这个代码..。但不是为我工作..。

它给出了我在使用xAuth时遇到的错误,而没有启用xAuth Twitter integrated in Iphone App

错误日志是:

代码语言:javascript
复制
Twitter request failed! (3AFB8476-929F-4467-A4FE-DE43358CB62A) Error: The operation couldn’t be completed. (HTTP error 401.) ((null))

还有一件事,我还没有在设置应用程序的密钥和秘密中找到任何东西?

可能是因为这个错误..。请帮帮我。

推特按钮选项卡上的编辑代码

代码语言:javascript
复制
-(IBAction)twitterBtnAct:(id)sender{
    // Put your Twitter username and password here:
    NSString *username = @"username";
    NSString *password = @"password";

    // Make sure you entered your login details before running this code... ;)
    if ([username isEqualToString:@""] || [password isEqualToString:@""]) {
        NSLog(@"You forgot to specify your username/password in AppController.m!");
    }

    // Create a TwitterEngine and set our login details.
    twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
    [twitterEngine setUsername:username password:password];

    // Get updates from people the authenticated user follows.
    [twitterEngine getFollowedTimelineFor:username since:nil startingAtPage:0];
}

Amit Battan

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-03-10 12:50:07

票数 0
EN

Stack Overflow用户

发布于 2011-03-03 08:18:44

HTTP 401错误涉及身份验证问题。在项目中,应用程序可以:

代码语言:javascript
复制
 twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
 [twitterEngine setUsername:username password:password]

你在你的应用程序中设置了这个吗?

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5178146

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档