Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/video/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Cocoa touch MGTwitterEngine Iphone oAuth_Cocoa Touch_Iphone Sdk 3.0_Mgtwitterengine - Fatal编程技术网

Cocoa touch MGTwitterEngine Iphone oAuth

Cocoa touch MGTwitterEngine Iphone oAuth,cocoa-touch,iphone-sdk-3.0,mgtwitterengine,Cocoa Touch,Iphone Sdk 3.0,Mgtwitterengine,我从源代码处尝试了用于oAuth的MGTwitterEngine 我将此代码用于MGTwitterEngine oAuth。。。但不是为我工作 它给出了与我在使用xAuth时没有启用xAuth时相同的错误 错误日志为: Twitter request failed! (3AFB8476-929F-4467-A4FE-DE43358CB62A) Error: The operation couldn’t be completed. (HTTP error 401.) ((null)) 还有一件事

我从源代码处尝试了用于oAuth的MGTwitterEngine

我将此代码用于MGTwitterEngine oAuth。。。但不是为我工作

它给出了与我在使用xAuth时没有启用xAuth时相同的错误

错误日志为:

Twitter request failed! (3AFB8476-929F-4467-A4FE-DE43358CB62A) Error: The operation couldn’t be completed. (HTTP error 401.) ((null))
还有一件事,我在设置应用程序密钥和机密的数据库中没有找到任何内容

可能是由于此原因导致的错误。。请帮帮我

已编辑 twitter按钮选项卡上的代码


Amit Battan

HTTP 401错误与身份验证问题有关。在项目中,应用程序执行以下操作:

 twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
 [twitterEngine setUsername:username password:password]

您在应用程序中设置了吗?

我使用了oAuth

我已经完成了这些。。我已经添加了我正在使用的有问题的代码
 twitterEngine = [[MGTwitterEngine alloc] initWithDelegate:self];
 [twitterEngine setUsername:username password:password]