I. BACKGROUND
Recently, due to development needs, you need to customize an immediate chat button on the website, now share the solution to everyone.
Second, the solution
1. First visit: http://shang.qq.com/widget/consult.php, the application needs to be used as the purpose of the QQ number to log in, and then click on the Pop-up window of the "Free open Now" button to enter the following page:
2. Select the component style and the prompt you want, then copy the code from the text box in the following screen to the specified location on your site. Or you select the tagged URL in the snippet (http://wpa.qq.com/msgrd?v=3&uin=1281616040&site=qq&menu= YES). Then customize the button style, make the button click on the event to open a new tab and set the address as the URL.
3. Set the purpose of the QQ permissions:qq-> permission settings, "Do not accept any temporary session" hook removed
Iii. Summary
After such a few steps, the implementation of the click on the site of the custom button pop-up and specify the QQ number chat function, very simple is also very practical!
Click on the custom button on the website to initiate the QQ chat solution