Android版Twitter的OUTH教程回调问题 [英] android twitter outh tutorial callback problem
问题描述
尝试下面的教程
http://www.androidsdkforum.com/android- SDK开发/ 3-OAuth的twitter.html
我无法理解回调网址
我的Twitter的应用程序名称是费萨尔 - 机器人和我打过来的网址我在code定义为
my twitter app name is "faisal-android" and my call back url i defined in code is
的myapp:// wozzon-的Android
myapp://wozzon-android
和具有xml文件条目
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="myapp" android:host="faisal-android" />
</intent-filter>
M I的方式来定义回调URL是正确的?
m i way to defining callback url is correct ??
当我运行code它给我的错误授权失败(服务器回答一个401)。如果消费者关键是不正确或不签名不匹配会发生这种情况
when i run the code it gives me error "Authorization failed (server replied with a 401). This can happen if the consumer key was not correct or the signatures did not match"
我的Twitter的应用程序帐户设置如下
my twitter app account settings as following
推荐答案
我认为你需要检查浏览器和客户端没有如果使用回调URL
I think you need to check browser and not client if you use a callback url
我看了一些关于这一点:
http://blog.sogeti.com/mobile/2010 /03/twitter-oauth-for-android.html
(死链接)
I read something about this : http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html (dead link)
这篇关于Android版Twitter的OUTH教程回调问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!