


How to enable a WeChat third party to initiate web page authorization on behalf of a public account
The main content of this article is to introduce how to implement web page authorization initiated by a WeChat third party on behalf of a public account. It has certain reference value and I hope it can be helpful to you.
Purpose: Web page authorization
Prerequisite:
The official account or mini program must be authorized to a third-party platform,
It is included in the interface permissions of the official account Web page authorization must be set up
①Authorization: I won’t go into details here
②Web page authorization domain name designation:
WeChat public platform-> interface Permissions->Web Service->Web Authorization-> Modify ->Web page authorization domain name settings-->Directly write the login authorization initiation page of the third-party server Just a domain name is enough, no need to specify a specific path.
Note that if the domain name of the authorized third-party server is not written here, it will be reported that scope does not have permission
Process: Open the specified link through the client to obtain the code,Use code in exchange for access_token, use access_token in exchange for user basic information
Since you need to use the client, you need to perform the following operations in the background of the official account:
① Binding (this is necessary when testing locally)
②Download Tool
Note: The following operations are for public accounts that have been authorized to third-party platforms
Binding: WeChat Public Platform-->Developer Tools -->webDeveloper tools-->Bind developer WeChat account
Download tool: Go to the official website and download one "微信webDeveloper Tools"
微信webUse of development tools:
Open WeChat developer tools -->Public account web project -->Click on the personal center of the avatar in the upper left corner and click on the small circle-->After scanning, the WeChat interface on your mobile phone will appear like this: Do you want to confirm? Log in to WeChat web Developer Tools. Testers and developers can obtain your relevant information through the following official account [the official account that has been bound to the developer in the previous step] --->Confirm login
After confirming successful login on your mobile phone, return to the WeChat developer tools and directly search in the top search box of the tool Enter the request code for the request url, similar to this:
Original link for web page authorization:
https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx1fb168c116d58358&redirect_uri=http://tzs.backend.wsjtq.com/api/wxopen/public-accounts-authorize&response_type=code&scope=snsapi_userinfo&state=888&component_appid= wxe719c0a8a906cb84#wechat_redirect
The appid in the path is the official account authorized to a third partyappid
Component_appid is the third party’sappid
Related tutorials: WeChat Mini Program Video Tutorial
The above is the detailed content of How to enable a WeChat third party to initiate web page authorization on behalf of a public account. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Scrapy implements article crawling and analysis of WeChat public accounts. WeChat is a popular social media application in recent years, and the public accounts operated in it also play a very important role. As we all know, WeChat public accounts are an ocean of information and knowledge, because each public account can publish articles, graphic messages and other information. This information can be widely used in many fields, such as media reports, academic research, etc. So, this article will introduce how to use the Scrapy framework to crawl and analyze WeChat public account articles. Scr

The difference between WeChat public account authentication and non-authentication lies in the authentication logo, function permissions, push frequency, interface permissions and user trust. Detailed introduction: 1. Certification logo. Certified public accounts will obtain the official certification logo, which is the blue V logo. This logo can increase the credibility and authority of the public account and make it easier for users to identify the real official public account; 2. Function permissions. Certified public accounts have more functions and permissions than uncertified public accounts. For example, certified public accounts can apply to activate the WeChat payment function to achieve online payment and commercial operations, etc.

Python is an elegant programming language with powerful data processing and web crawling capabilities. In this digital era, the Internet is filled with a large amount of data, and crawlers have become an important means of obtaining data. Therefore, Python crawlers are widely used in data analysis and mining. In this article, we will introduce how to use Python crawler to obtain WeChat public account article information. WeChat official account is a popular social media platform for publishing articles online and is an important tool for promotion and marketing of many companies and self-media.

In today's Internet era, WeChat official accounts have become an important marketing channel for more and more companies. If you want your WeChat official account to implement more functions, you often need to write corresponding interfaces. This article will use PHP language as an example to introduce how to build a WeChat public account API interface. 1. Preparation Before writing the WeChat public account API interface, the developer needs to have a WeChat public account and apply for developer interface permissions in the WeChat public platform. After the application is successful, you can obtain the relevant developer AppID and AppSe

How to use Laravel to develop an online ordering system based on WeChat official accounts. With the widespread use of WeChat official accounts, more and more companies are beginning to use them as an important channel for online marketing. In the catering industry, developing an online ordering system based on WeChat public accounts can improve the efficiency and sales of enterprises. This article will introduce how to use the Laravel framework to develop such a system and provide specific code examples. Project preparation First, you need to ensure that the Laravel framework has been installed in the local environment. OK

The public account can not only post one article per day, but can publish up to eight articles at a time. How to publish multiple articles: 1. Click "Material Management" on the left, and then click "New Graphic and Text Material" to start editing. First article; 2. After editing the first article, click the + sign under the first article on the left and click "Graphic Message" to edit the second article; 3. After finishing multiple images and text, click " Save and send in bulk" to complete the publishing of multiple articles.

With the popularity of the Internet and the widespread use of mobile devices, WeChat official accounts have become an indispensable part of corporate marketing. Through WeChat public accounts, companies can easily interact with users, promote products and services, and increase brand awareness. In order to better develop WeChat public account applications, more and more developers and companies choose to use Go language to build WeChat public account applications. Go language is a programming language developed by Google. Its syntax is concise and suitable for building high-performance, high-concurrency real-time applications. In terms of ease of use and

With the gradual popularity of WeChat public accounts in social networks, more and more developers have begun to get involved in the field of WeChat public account development. Among them, PHP, as a common back-end programming language, has also begun to be widely used in the development of WeChat public accounts. This article will introduce the basic knowledge and common techniques of PHP in WeChat public account development. 1. Basics of PHP and WeChat public account development WeChat public account development WeChat public account refers to an Internet application based on the WeChat platform, which can provide users with different types of services and content, such as information push
