问题一:回调地址
可以使用推荐的地址。在应用的高级设置中,应用回调页,要设置成一样。
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.”,提示密码错误。
我是直接拷贝的密码,怎么会错误呢?仔细检查发现确实有问题,数字后面多了一个不可见的,不知道是什么的字符。这就导致了密码错误。去掉这个字符就好了