0

我正在尝试为 android 连接 twitter。所以我已经从github下载了源代码。但我收到一条消息,即

<error>Desktop applications only support the oauth_callback value 'oob'</error>

但我已经定义了它。'公共静态最终字符串 REST_CALLBACK_URL = "hywtest://hywtwitter";'

我将 callback_url 更改为 'oob',我可以接近 twitter,但是当更改页面时,显示 pin 号,并且没有任何反应。

当然,我也改变了清单。

<data
                    android:host="hywtwitter"
                    android:scheme="hywtest" />

请帮我!

4

2 回答 2

0

您需要在 dev.twitter.com 上的应用程序记录中提供占位符回调 URL——此占位符允许您在 oauth/request_token 步骤中使用动态提供的回调执行基于回调的身份验证。

于 2013-10-22T07:23:49.930 回答
0

您必须在应用程序详细信息中的 Twitter 应用程序页面中提供一个回调 URL,其中 twitter 在成功验证后返回。

于 2013-10-22T07:29:28.540 回答