PHP implementation of third-party login-qq Login method

Source: Internet
Author: User
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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.