Twitter集成在Iphone App中 [英] Twitter integrated in Iphone App
问题描述
我使用了MGTwitterEngine
I used MGTwitterEngine
尝试登录然后请求失败错误出现
which try to login then request fail error comes
错误详细信息
connectionIdentifier 6260FAFD-AE4E-4F05-AE67-FFA1DA18578F
connectionIdentifier 6260FAFD-AE4E-4F05-AE67-FFA1DA18578F
错误描述无法完成该操作。 (HTTP错误401。)
error description The operation couldn’t be completed. (HTTP error 401.)
错误用户信息
({
body = \n\n客户端应用程序不允许使用xAuth.\n / oauth / access_token\n\n;
response =;
})
error user info ({ body = "\n\n Client application is not permitted to use xAuth.\n /oauth/access_token\n\n"; response = ""; })
任何想法
-阿米特·巴坦(Amit Battan)
-Amit Battan
推荐答案
基本Twitter不再支持身份验证。您可以使用 Twitter-oAuth-iPhone 。它使用MGTwitterEngine添加了oAuth。也包括一个演示代码项目。但是,您将需要SDK> = 3.2来编译最新版本。
Basic authentication is no longer supported by Twitter. You can use Twitter-oAuth-iPhone. It added oAuth with MGTwitterEngine. There is a demo code project included too. However, you will require SDK >= 3.2 to compile the latest version.
您需要向Twitter API小组要求提供xAuth的问题,以提供应用程序的详细信息。在不需要oAuth的情况下。您将需要在 Twitter开发人员中创建一个应用程序,然后在项目中使用密钥。就这样。
The problem with xAuth that you need to request to the Twitter API team providing detail of the application. In case of oAuth that is not required. You will need to create an application in Twitter Dev and then you need to use the keys in the project. That's all.
这篇关于Twitter集成在Iphone App中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!