将 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/