0, download QQ login (QQ Mutual) PHP version:: Click the Open link (this article was written at the latest version: V2.1)
1, in the QQ internet site Register a AppID, configure the website address and callback address.
Example: http://yzdd.app1101808733.twsapp.com
yzdd.app1101808733.twsapp.com/api/example/oauth/callback.php
2, modify the homepage (root directory Start page), add verification code to verify
3, set the configuration data: Appid,appkey,callback, etc.
Method 1:http Access api/install/index.php After the configuration is successful delete the install folder
Method 2: Manually modify the api/api/comm/inc.php
4. Modify Callback page callback.php return address after successful execution:
5, modify the page, add the login button code
function () { window.open ("api/example/oauth/index.php", "Tencentlogin", "width=450,height=320,menubar=0", Scrollbars=1,resizable=1,status=1,titlebar=0,toolbar=0,location=1 ") }
6, complete the configuration, test results, submitted after the audit (not approved only the creator QQ to test)
PHP QQ third-party login