scope为snsapi_userinfo 未关注者点击受权提示 scope参数错误或没有scope权限 api
解决方法 app
出现这种错误网上查出现有的缘由是:
url
订阅号没有相关的权限spa
帐号没有认证,没有相关的权限code
那么这里遇到问题两种都不是。开发帐号是 服务号,并且也是认证号。orm
解决方法:ci
错误配置:
开发
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=url&scope=snsapi_userinfo&response_type=code&state=STATE#wechat_redirect
正确的配置:it
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=url&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect
缘由就是scope的位置不同!!! oauth
当 scope 为 snsapi_base的时候没有影响。可是scope为snsapi_userinfo 就会提示 scope参数错误或没有scope权限 。