【发布时间】:2014-07-09 19:59:25
【问题描述】:
试试下面的教程
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 应用程序帐户设置如下 alt text http://www.freeimagehosting.net/uploads/a0c2689c73.png
【问题讨论】: