How to obtain the scope (snsapi_login) permission through WeChat APIs, and access the scan code logon on the PC side

Source: Internet
Author: User
How does the api obtain the scope (snsapi_login) permission? the logon via scan code on the PC side is not found in the Developer Documentation. I have read the relevant articles and did not say how to obtain the permission. my public account is the service number, you have already handed in the 300 certification.
A friend who knows what to do


Reply to discussion (solution)

Don't sink!

On a third-party platform ....

Public Accounts (public platforms) and open platforms are two different things. The scope obtained by the public account (public platform) only includes two types: snsapi_base and snsapi_userinfo. The former is acquired silently and imperceptible to users. The latter requires user confirmation and consent.

But open platforms (https://open.weixin.qq.com/) can get scope like snsapi_login. If you want to obtain snsapi_login, you must register the open platform and pay 300 yuan for the authentication.

If you just want to scan the QR code to log on, snsapi_base is enough because it can get the user's openid and you can use it to compare it with your own database.

If you still don't understand it, you can refer to this and I have made it an API, which is easier to use:
Https://wenfan.cn/archives/1866.wen

Public Accounts (public platforms) and open platforms are two different things. The scope obtained by the public account (public platform) only includes two types: snsapi_base and snsapi_userinfo. The former is acquired silently and imperceptible to users. The latter requires user confirmation and consent.

But open platforms (https://open.weixin.qq.com/) can get scope like snsapi_login. If you want to obtain snsapi_login, you must register the open platform and pay 300 yuan for the authentication.

If you just want to scan the QR code to log on, snsapi_base is enough because it can get the user's openid and you can use it to compare it with your own database.

If you still don't understand it, you can refer to this and I have made it an API, which is easier to use:
Https://wenfan.cn/archives/1866.wen


I found it before, but thank you very much for your answer.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.