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 - add
2: Enter the public Account name, original ID, WeChat ID
3: The public account can be found here
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 Account background configuration
6 After the input is completed, record the key, appid and appSecret, enter it here
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
8: Open the basic plug-in-custom menu-add
If the addition is successful, the save is successful. If it fails, it will automatically report the corresponding error, such as:
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
10: Configure web page authorization Basic information, (only certified service accounts can use this function)
Enter the domain name information you want to authorize callbacks
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 WeChat public account authorization settings, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.