尝试以下教程
http://www.androidsdkforum.com/android-sdk-development/3-oauth-twitter.html http://www.androidsdkforum.com/android-sdk-development/3-oauth-twitter.html
我无法理解回调 URL
我的 Twitter 应用程序名称是“faisal-android”,我在代码中定义的回调 URL 是
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>
我定义回调 url 的方式是否正确?
当我运行代码时,它给出错误“授权失败(服务器回复 401)。如果消费者密钥不正确或签名不匹配,则可能会发生这种情况”
我的 Twitter 应用程序帐户设置如下替代文本 http://www.freeimagehosting.net/uploads/a0c2689c73.png http://www.freeimagehosting.net/uploads/a0c2689c73.png
我认为如果您使用回调网址,您需要检查浏览器而不是客户端
我读到了一些关于此的内容:http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html(死链接)
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)