使用twitter ios sdk oAuth [英] Use twitter ios sdk oAuth

查看:287
本文介绍了使用twitter ios sdk oAuth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试使用MGTwitterEngine进行Twitter Iphone集成, 根据其文档,这同时支持xAuth和oAuth 首先,我使用xAuth作为我正在调用的名为 getXAuthAccessTokenForUsername

I try to use MGTwitterEngine for twitter Iphone integration, this is supporting both xAuth and oAuth as per its documentation and firstly I try it using xAuth as which function I am calling named getXAuthAccessTokenForUsername

但是我的应用程序处于开发阶段..并且twitter不批准..他们将在发布后批准...

But my application is in developing stage .. and twitter not approving it .. they will approve it after release...

我无法通过MGTwitterEngine使用oAuth

I am not able to use oAuth using MGTwitterEngine

有人可以帮我吗...

Can anybody help me...

即使我无法使用来源中的oAuth版本 http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/comment-page-1/

Even I am not able to use oAuth version from source http://mobile.tutsplus.com/tutorials/iphone/twitter-api-iphone/comment-page-1/

我可以使用它成功更新我的状态...但是不能做其他事情

I can update my status successfully using it...But not able do any thing else

我尝试

[_engine getUserInformationForEmail:@"battan20@gmail.com"];
//_engine is the twitterengine object

然后出错

请求9EF8DE73-6E04-46F1-9D90-484F90FCA44F失败,出现以下错误:错误域= HTTP代码= 404操作无法完成.(HTTP错误404.)"

请求016DB024-1BFB-4E9B-8734-3FFCCB93D6E4失败,出现以下错误:错误域= HTTP代码= 403无法完成操作.(HTTP错误403.)"

请帮助我

授予Battan

推荐答案

-(void)userInfoReceived:(NSArray *)userInfo forRequest:(NSString *)connectionIdentifier {
    NSMutableArray *mFollowerArray  =   nil;
    mFollowerArray  =   [userInfo retain];
    NSLog(@"count = %d",[mFollowerArray count]);
    for (int i=0; i<[mFollowerArray count]; i++) {
        NSLog(@" %@",[mFollowerArray objectAtIndex:i]);
    }
}

上面的代码可能有帮助

这篇关于使用twitter ios sdk oAuth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆