Home  >  Article  >  Backend Development  >  weiphp WeChat public platform authorization settings

weiphp WeChat public platform authorization settings

WBOY
WBOYOriginal
2016-07-29 09:07:461001browse

weiphp background usage settings

To display the name of the official account and share the service account when the user authorizes it

Usage steps

1: Open the official account management in the weiphp background - new

weiphp WeChat public platform authorization settings

2: Enter the public Account name, original ID, WeChat ID

weiphp WeChat public platform authorization settings

3: The public account can be found here

weiphp WeChat public platform authorization settings

4: After the input is completed, the next step will be to provide the URL and token. Then you need to publicize it on WeChat Number background configuration

weiphp WeChat public platform authorization settings

6 After the input is completed, record the key, appid and appSecret, enter it here

weiphp WeChat public platform authorization settings

weiphp WeChat public platform authorization settings

7: After pressing Save, select the service number you just filled in in the upper right corner The information is switched to the current public account

weiphp WeChat public platform authorization settings

8: Open the basic plug-in-custom menu-add

weiphp WeChat public platform authorization settings

If the addition is successful, it will be saved successfully. If it fails, it will automatically report the corresponding error, such as:

weiphp WeChat public platform authorization settings

9 If successful, a green box will be displayed to indicate success. Then change the sharing interface and correctly enter your own sharing link domain name, such as www.baidu.com

weiphp WeChat public platform authorization settings

10: Configure web page authorization Basic information, (only certified service accounts can use this function)

weiphp WeChat public platform authorization settings

weiphp WeChat public platform authorization settings

Enter the domain name information you want to authorize callbacks

weiphp WeChat public platform authorization settings

You can configure the authorization through the above 10 steps, and it will be correct The use is authorized.

Then you can use explicit authorization snsapi_userinfo on weiphp. After viewing it, click the authorization green window to see if it is the window you set. If it is consistent, it means success

The above introduces the weiphp WeChat public platform authorization settings, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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