android - Parse.com 身份验证错误 : Unable to respond to any of these challenges: {oauth=www-authenticate: OAuth realm ="https://api.twitter.com"}

标签 android authentication twitter parse-platform

将 Parse Android SDK 升级到版本 1.4.1 后,Twitter 登录停止工作。当我尝试使用 Twitter 登录时:

ParseTwitterUtils.initialize(Constants.TWITTER_CONSUMER_KEY, Constants.TWITTER_CONSUMER_SECRET);
ParseTwitterUtils.logIn(activity, new LogInCallback() {
    @Override
    public void done(ParseUser parseUser, ParseException e) {
        if (e == null) {
            // Success
        } else {
            // Error
        }
    }
});

我收到错误:

Authentication error: Unable to respond to any of these challenges: {oauth=www-authenticate: OAuth realm="https://api.twitter.com"}

我已经在 Parse.com 上提问了但也许你们知道问题出在哪里。 提前致谢。

最佳答案

通过为回调 URL 指定 http://www.localhost.com/callback 和为网站指定 http://www.localhost.com 解决了这个问题Twitter 应用程序设置。

关于android - Parse.com 身份验证错误 : Unable to respond to any of these challenges: {oauth=www-authenticate: OAuth realm ="https://api.twitter.com"},我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22566172/

相关文章:

android - 如何更改操作栏上菜单项的位置

仅具有缩放控件的 Android MapFragment API v2 空 map

java - 哪种方法更适合用于登录表单 doget() 或 dopost()

Android根据屏幕分辨率设置ListView行高

android - 如何从 Android 库构建 AAR?

email - 如何验证入站邮件?专门使用 SendGrid?

authentication - 通知来自服务的更改的 Angular 2 组件

php - 获取 Twitter 个人资料图片实际链接

php - 如何在 php 中使用 oauth token 和 secret 发推文

iphone - iOS - 在不使用 ARC 的应用程序中使用 Twitter Reverse auth