【问题标题】:android twitter outh tutorial callback problemandroid twitter outh教程回调问题
【发布时间】: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

【问题讨论】:

    标签: android twitter


    【解决方案1】:

    如果您使用回调 url,我认为您需要检查浏览器而不是客户端

    我读到了一些关于此的内容: http://blog.sogeti.com/mobile/2010/03/twitter-oauth-for-android.html (死链接)

    【讨论】:

    • 这个链接失效了谁能帮我解决同样的问题。
    【解决方案2】:
    【解决方案3】:

    在 twitter 中检查您的回调 UL。输入任何不留空的虚拟 URL。 你可以写 google.com,它适用于我的情况。

    【讨论】:

      猜你喜欢
      • 2011-10-12
      • 1970-01-01
      • 2015-11-16
      • 1970-01-01
      • 2014-10-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多