How can I test the QQ login function locally?

Source: Internet
Author: User
How can I test the QQ login function locally? Currently, one-click QQ login is being developed, that is, the function of directly logging on to the Forum using the QQ number. However, if localhost is used as the callback domain name, there is no way to test the function. the following prompt is displayed:

The error of 'redirect _ uri 'indicates that the bound domain name must be used for testing, but I want to test it locally. what should I do?


Reply to discussion (solution)

P brother, just enter a baidu or something. if you want to get the parameters returned from the callback domain name

Configure the VM locally during debugging

P brother, just enter a baidu or something. if you want to get the parameters returned from the callback domain name



I swear to defend your right to speak, but it is obvious that your statement is not true.

You need to enter the QQ space developer application and apply for the appkey.

You entered the callback address on QQ, right? So what is the solution.
Or you can download an oauth phpWebservice from the QQ space developer app mentioned in LS. remember that there are two versions in the phpWebservice. you can select one and download it. according to the instructions, the document is mounted locally for development and testing first.
Http://wiki.opensns.qq.com/wiki/%E3%80%90QQ%E7%99%BB%E5%BD%95%E3%80%91SDK%E4%B8%8B%E8%BD%BD

Configure redirectURI = www. the domain name you entered. com? Url = "http: 192.168.1. local IP: 8080/Redirect Method"

You can test it.

Related Article

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.