WeChat development: scope parameter error or no scope permission solution

The scope is snsapi_userinfo. The unfollowers click on the authorization prompt. The scope parameter is incorrect or there is no scope permission. 


Solution  

The reasons for this error appearing on the Internet are:

  1. Subscription account does not have relevant permissions

  2. The account is not authenticated and has no relevant permissions

So the problem here is neither. The development account is the service number, and it is also the authentication number.

Solution:

Misconfiguration:

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&scope=snsapi_userinfo&response_type=code&state=STATE#wechat_redirect

Correct configuration:

https://open.weixin.qq.com/connect/oauth2/authorize?appid=wxf0e81c3bee622d60&redirect_uri=http%3A%2F%2Fnba.bluewebgame.com%2Foauth_response.php&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect

  The reason is that the position of the scope is different! !

No effect when scope is  snsapi_base. However , if the scope is snsapi_userinfo, it will prompt that the  scope parameter is wrong or there is no scope permission.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325959243&siteId=291194637