这两天在做豆瓣的第三方登录的时候一直都通不过,请问这是什么问题啊?
错误:
string 'HTTP/1.1 403 Forbidden
Server: nginx
Date: Thu, 30 Jul 2015 08:04:54 GMT
Content-Type: application/json; charset=utf-8
Content-Length: 69
Connection: keep-alive
Keep-Alive: timeout=10
Expires: -1
{"msg":"need_permission","code":1000,"request":"GET \/v2\/user\/~me"}' (length=275)
string '' (length=0)
百度了,谷歌了也都没找到解决方法。
我有申请权限,但是这个应该是还没有审核通过的,不至于不审核通过 就不让人测试了吧?在其他第三方登录都是在审核前测试正常的。
权限列表
PHP代码:
我的scope为:scope=douban_basic_common,community_basic_user
获取 token的地址:https://www.douban.com/service/auth2/auth?response_type=code&client_id=0ddda2cb396d&redirect_uri=http://fionyy.duapp.com/Tobento/index.php/Home/Index/callback/type/douban&state=c387df94df72b501a5570bc9a3c77038&scope=douban_basic_common,community_basic_user
直接用谷歌插件测试会返回JSON啊。
但是通过程序一直都不通过...
谷歌测试