Android Twitter Oauth教程回调问题

3

尝试以下教程

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
3个回答

1

9
这个链接无法打开,有人能帮我解决这个问题吗? - PiyushMishra


0

检查您在 Twitter 中的回调 UL。输入任何虚拟 URL,不要保持为空。 您可以写 google.com,在我的情况下有效。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接