您的位置:首页 > 其它

新浪微博,用SDk测试获取用户授权的问题

2015-05-19 22:51 211 查看
问题一:回调地址

可以使用推荐的地址。在应用的高级设置中,应用回调页,要设置成一样。

client_ID =xxxxxx

client_SERCRET =xxxxxxxxxxxxxxx

redirect_URI =https://api.weibo.com/oauth2/default.html

baseURL=https://api.weibo.com/2/

accessTokenURL=https://api.weibo.com/oauth2/access_token

authorizeURL=https://api.weibo.com/oauth2/authorize

rmURL=https://rm.api.weibo.com/2/

问题二:

{“error”:”invalid_client”,”error_code”:21324,”request”:”/oauth2/access_token”,”error_uri”:”/oauth2/access_token”,”error_description”:”client_secret error.”}

这个问题我也找了很久,发现网上的解决方法都不行。

只好回过头来看错误信息,”error_description”:”client_secret error.”,提示密码错误。

我是直接拷贝的密码,怎么会错误呢?仔细检查发现确实有问题,数字后面多了一个不可见的,不知道是什么的字符。这就导致了密码错误。去掉这个字符就好了

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  新浪微博-授权