The steps to obtain user information are as follows: 1 Step 1: The user agrees to authorize and obtain code2 Step 2: Exchange the code for web page authorization access_token3 Step 3: Refresh access_token (if necessary) 4 Step 4: Pull user information ( The scope needs to be snsapi_userinfo) 1 To obtain the code, make sure that the WeChat public account has the permissions of the authorization scope (scope parameter) (after the service account obtains the advanced interface, it will have snsapi_base and snsapi_userinfo in the scope parameter by default), guide followers to open as follows Page: open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect If it prompts "The link cannot be accessed", please check
1 . Summary of usage examples for web page authorization acquisition
##Introduction: The steps to obtain user information are as follows: 1 Step 1: The user agrees to authorize and obtain code2 Step 2: Exchange the code for web page authorization access_token3 Step 3: Refresh access_token (if necessary) 4 Step 4: Pull user information (need to have scope snsapi_userinfo) 1 Get code in Make sure that the WeChat public account has the permissions of the authorization scope (scope parameter) (after the service account obtains the advanced interface, it will have the snsapi_base and scope parameters in the scope parameter by default...
2. Mini Program Development--User Login and Maintenance Example Tutorial
3.
How to obtain user information through web authorization
4.
WeChat development Detailed explanation of the example of correlating OAuth2.0 web page authorization authentication with obtaining user information
5.
Detailed explanation of the custom menu implementation code of WeChat development model
Introduction: Recently, a function has been implemented for user association authorization login between WeChat public accounts and users of their own websites. The main purpose is for users to follow the public account and click on the member center, and a web page authorization that requires association authorization will pop up. : OAuth2.0 web page authorization, and then the user agrees to obtain user information, associate the user with the website, and then the user can log in using WeChat. What we are doing this time is to process each return parameter to obtain data in the Action layer of Java. 1. Tools used: 1 6. Develop WeChat public platform to obtain basic user information Introduction: This article introduces how to obtain the basic information of users followed on the WeChat public platform, including nickname, avatar, gender, country, province, city, and language. 7. Introduction to WeChat enterprise account development to obtain user information ##Introduction: This article analyzes the introduction of WeChat enterprise account development to obtain user information 8. Using php WeChat development to obtain user information implementation code detailed explanation Introduction: This article mainly introduces the relevant information on how to obtain user information through PHP WeChat development, which is required Friends can refer to 9. Detailed graphic explanation of WeChat public account development custom menu jump page and obtain user information examples Introduction: This article mainly introduces the relevant information on the detailed examples of developing custom menu jump pages for WeChat public accounts and obtaining user information. Friends in need You can refer to the following 10. WeChat authorized login and obtain user information interface Introduction: 1. First, your WeChat official account must obtain the corresponding AppID and AppSecret. Only after you apply for WeChat login and pass the review can you start the access process. [Related Q&A Recommendations]: javascript - How to obtain user information in office.js used by office add-in programs? javascript - How to return other URL requests in node? php - Can't get openid after WeChat H5 refresh? #php - Google Oauth2 encounters a strange problem when obtaining user information #php - How to deal with the WeChat public platform after opening the server configuration Can the interface allow the custom menu of the public platform to continue to be used?
The above is the detailed content of 10 recommended articles about obtaining user information. For more information, please follow other related articles on the PHP Chinese website!