mak*_*tar 3 authentication twitter android 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
}
}
});
Run Code Online (Sandbox Code Playgroud)
我收到错误:
Authentication error: Unable to respond to any of these challenges: {oauth=www-authenticate: OAuth realm="https://api.twitter.com"}
Run Code Online (Sandbox Code Playgroud)
我已经在Parse.com上问了一个问题,但也许你们知道问题是什么.提前致谢.
通过在Twitter应用程序设置中指定http://www.localhost.com/callback回调URL和http://www.localhost.com网站解决了此问题.
| 归档时间: |
|
| 查看次数: |
2030 次 |
| 最近记录: |