新浪微博,用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.”,提示密码错误。
我是直接拷贝的密码,怎么会错误呢?仔细检查发现确实有问题,数字后面多了一个不可见的,不知道是什么的字符。这就导致了密码错误。去掉这个字符就好了
可以使用推荐的地址。在应用的高级设置中,应用回调页,要设置成一样。
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.”,提示密码错误。
我是直接拷贝的密码,怎么会错误呢?仔细检查发现确实有问题,数字后面多了一个不可见的,不知道是什么的字符。这就导致了密码错误。去掉这个字符就好了
相关文章推荐
- 新浪微博分享 (获取用户授权时出现 error :redirect_uri_mismatch 的问题)
- Android 微信授权登录、获取Wx用户信息,解决无法回调问题
- Java 微信登录授权后获取微信用户信息昵称乱码问题解决
- 微信公众号用户授权问题---openid获取失败,之后导致服务器内存耗尽
- java 微信授权后获取微信用户信息昵称乱码问题 解决
- IOS开发——使用shareSDK授权新浪微博、腾讯微博、微信并获取用户资料
- 新浪微博iOS SDK 授权和获取用户信息
- 关于淘宝应用毋须授权即可获取用户信息的问题
- 新浪微博开放平台,授权成功后获取用户信息
- Android授权登录新浪微博获取用户个人信息
- Laravel 小程序授权用户昵称带符号获取不到授权用户信息的问题 3ff8
- oracle 用户登录企业管理器 授权问题
- 微信开发-网页授权获取用户信息
- WCF热门问题编程示例(5):WCF服务如何获取客户端在线用户数量?
- java实现微信公众号授权登录获取用户信息流程
- WCF热门问题编程示例(5):WCF服务如何获取客户端在线用户数量?
- WCF热门问题编程示例(5):WCF服务如何获取客户端在线用户数量?
- WCF热门问题编程示例(5):WCF服务如何获取客户端在线用户数量?
- WCF热门问题编程示例(5):WCF服务如何获取客户端在线用户数量?
- 新浪微博Oauth2.0授权 获取Access Token以及API的使用