Home  >  Article  >  WeChat Applet  >  Summary of usage examples for web page authorization acquisition

Summary of usage examples for web page authorization acquisition

伊谢尔伦
伊谢尔伦Original
2017-06-11 13:58:582110browse

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), and 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 . Methods for web page authorization to obtain user information

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 code 2 Step 2: Exchange the code for web page authorization access_token 3 Step 3: Refresh access_token (if necessary) 4 Step 4: Pull user information (scope is required to be snsapi_userinfo)

2. Implementation steps for obtaining web page authorization for WeChat public account

Summary of usage examples for web page authorization acquisition

##Introduction: Under the premise of ensuring 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 the following page:

3.

Get the current user Openid and precautions in a timely manner from the WeChat public account development webpage

Summary of usage examples for web page authorization acquisition

Introduction: Preface This article mainly follows the previous article's web page authorization to obtain the user's basic information. It is also about the first type of silent authorization. When the user clicks on the link in the official account, how to A general explanation and some precautions for obtaining the current user's OpenId again.

4.

WeChat public account development webpage authorizes obtaining user basic information

Summary of usage examples for web page authorization acquisition##Introduction: If the user accesses a third-party webpage in the WeChat client, the official account can obtain the user's basic information through the WeChat webpage authorization mechanism, and then implement business logic.

5.

WeChat public account-obtaining user information (webpage authorization acquisition) implementation steps

Summary of usage examples for web page authorization acquisitionIntroduction: WeChat public account-obtaining user information (webpage authorization acquisition) implementation steps

6.

(2) Webpage authorization acquisition User basic information

#Introduction:: This article mainly introduces (2) Web page authorization to obtain basic user information. Students who are interested in PHP tutorials can refer to it.

7.

Web page authorization for WeChat development to obtain user information 2

Introduction::This article mainly introduces WeChat Development Web Page Authorization to Obtain User Information 2. Students who are interested in PHP tutorials can refer to it.

8.

Changes in authorization callback domain name settings in WeChat public platform web page authorization to obtain user basic information, basic information callback_PHP tutorial

Introduction: The WeChat public platform web page authorizes the change of the authorized callback domain name setting in the user's basic information, and the basic information callback. Changes in the authorization callback domain name settings in the WeChat public platform web page authorization to obtain the user's basic information. The basic information callback is in Tencent's WeChat public platform developer documentation. The web page authorizes the user to obtain the user

##9. (2) Web page authorization to obtain basic user information, obtain basic information_PHP tutorial

Summary of usage examples for web page authorization acquisition

Introduction: ( 2) The webpage authorizes the user to obtain basic information and obtain basic information. (2) Web page authorization to obtain basic user information. During the configuration process of public accounts, many developers will add HTML5 pages to the menu. Sometimes they need to visit the page

10. WeChat development web page authorization to obtain user information (2), user information_PHP tutorial

Summary of usage examples for web page authorization acquisition

## Introduction: Web page developed by WeChat authorizes to obtain user information (2), user information. Web page developed by WeChat authorizes to obtain user information (2). During the configuration process of user information in the public account, many developers will add HTML5 pages to the menu. Sometimes they need to visit the page

[Related Q&A Recommendations]:

php - Issues with WeChat webpage authorizing snsapi_base to obtain openid

Front-end - Authorizing to obtain users in the development webpage When providing basic information, the code is null

javascript - [WeChat web development] Web page authorization to obtain user basic information: the function button to enter the login page is placed in the secondary menu to successfully log in, change it to one Level menu does not work

python - The webpage in WeChat obtains Chinese garbled characters after authorizing the user's basic information

The above is the detailed content of Summary of usage examples for web page authorization acquisition. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn