"Open source" simple 4 steps to make QQ login, no code skills "No Language limits"

Source: Internet
Author: User
Tags openid

Said 17th Super Simple tutorial on 17th, QQ determination review through the package of this, now put out ~ ~

This is an open source project in my package: Https://github.com/dunitian/LoTQQLogin

————————————————————————————————————————————

Please apply first.

Create an App

Website or mobile

Note the callback address (when you log in, it will pass through).

Take the website as an example

Verification can be successful, depending on the creation of the prompt

Remember the ID above

This is your API Management page (more can apply)

Here are the plays:

First step: Introduction of JQ
<script type= ' text/javascript ' src= ' http://ajax.useso.com/ajax/libs/jquery/1.7.2/jquery.min.js?ver=3.4.2 ' ></script>
Step two: Replace the data-appid with your Id,data-redirecturi to your callback address
<script type= "Text/javascript" src= "Http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid= " 101271485"data-redirecturi="http://www.dkill.net/Index"charset=" Utf-8 "></script>
Step three: Introduce Lotqq.js
<script src= "Javascript/lotqq.js" ></script>
Fourth step: Pass the parameters and set up your callback functions (such as doing some storage) "LOTQQ is the ID of the QQ login icon you want to place
<script type= "Text/javascript" >
$.lotqq ('101271485', 'http://www.dkill.net/Index', 'lotqq', function (data) {
///callback function, do some storage you need ~ ~ ~ (data array has what you need)
Console.log (' Name: ' + data. Name);
Console.log (' OpenId: ' + data. OPENID);
Console.log (' Accesstoken: ' + data. Accesstoken);
Console.log (' figureurl: ' + data. Figureurl);
});
</script>

Effect:

Initial time:

Jump Login:

After Login: (style can be adjusted)

Available values: (can be stored according to the callback function itself)

What bugs or new needs can be made to me ~ ~ Goodnight ~

"Open source" simple 4 steps to make QQ login, no code skills "No Language limits"

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.