This article mainly introduces PHP implementation of third-party login-qq login method, interested in the friend's reference, I hope to help you.
OAuth Fundamentals
Access QQ Login Pre-condition
Apply for AppID and Appkey
Login QQ Interconnection Application website application or mobile app access
Once you've applied the steps successfully, create an app to see the corresponding AppID and Appkey
Introducing the Official SDK
Add a test callback address
1, add a virtual host locally * *, such as the domain name is test.gz06.cn, and then add this domain name in the Hosts file
127.0.0.1 localhost test.gz06.cn
2. Add the local test callback domain name to the callback address in the application information editor of QQ Internet; Good separation, modify the time to click on the verification, and then save it
http://gz06.cn;http://test.gz06.cn/callback.php
3. Introduction of the Official SDK
4. SDK parameter Configuration
Access the SDK downloaded to the root directory
Http://test.gz06.cn/Connect2.1/
Prompt to configure parameters, click to enter
Configure the required parameters
The above is the whole content of this article, I hope that everyone's study has helped.