search
HomeBackend DevelopmentPHP Tutorialcms 里qq的回调地址应该怎么填写?

网上下个phpcms 后台设置qq登录,里面的回调地址不知道如何填写,
如果是别的cms ,回调地址应该都怎么填写?
qq申请网址接入里面的回调地址我也不知道该怎么写


回复讨论(解决方案)

qq登录 需要腾讯授权
授权后他会给你相关资料

qq登录 需要腾讯授权
授权后他会给你相关资料




qq互联里的回调地址,现在就是申请阶段,可是这个地址我不知道该填写什么

现在就是差这块了。。完全不知道添加什么。。。

不就是你的一个被他调用的程序吗

不就是你的一个被他调用的程序吗



首先这个程序是网上的下载的一套
我也已经找到了qq程序地址/mem/?xx=xx&xxx=xx

但是如果我把这个地址http://www.xx.com/mem/?xx=xx&xxx=xx
添加到回调地址里,可是不符合规范。。

而且如果是下载的程序(如cms)那么我还得去找这个qq程序地址么?

1.回调地址是不支持hash的,只能是http://www.xx.com/mem/qq_callback.php这样的形式。如果你下载的cms是用的hash的,那你只能自己写一个qq_callback.php让QQ回调,然后再跳转到http://www.xx.com/mem/?xx=xx&xxx=xx去。

2.如果是下载的cms支持qq互联,一般它会放在api/qq/oauth下面,如果不支持,那下载QQ的phpsdk加入到自己的网站中。

1.回调地址是不支持hash的,只能是http://www.xx.com/mem/qq_callback.php这样的形式。如果你下载的cms是用的hash的,那你只能自己写一个qq_callback.php让QQ回调,然后再跳转到http://www.xx.com/mem/?xx=xx&xxx=xx去。

2.如果是下载的cms支持qq互联,一般它会放在api/qq/oauth下面,如果不支持,那下载QQ的phpsdk加入到自己的网站中。



您好,qq登录的链接是http://www.xxx.com/member/?mod=content&oper=init
返回地址,是http://www.xxx.com/member/?mod=content&oper=callback

我应该添加哪个?
两个我都分别做成伪静态了,可是还是出现redirect uri is illegal(100010) 
这个错误,
请问该如何解决?谢谢

腾讯开放平台 里都说的很清楚了!你为什么不看呢?
http://wiki.open.qq.com/wiki/%E3%80%90QQ%E7%99%BB%E5%BD%95%E3%80%91%E5%9B%9E%E8%B0%83%E5%9C%B0%E5%9D%80%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%8F%8A%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95

腾讯开放平台 里都说的很清楚了!你为什么不看呢?
http://wiki.open.qq.com/wiki/%E3%80%90QQ%E7%99%BB%E5%BD%95%E3%80%91%E5%9B%9E%E8%B0%83%E5%9C%B0%E5%9D%80%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E5%8F%8A%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95


我看了!!
里面说回调添根域名就可以,或者带参数的地址
但是现实带参数的地址添加不了显示不规范,根域名也不好使

我就是试了不好使才问的,好使的话我还问干什么???

申请时填写的callback是:mysite.com;example.com
合法的回调地址可以是:http://bbs.mysite.com/qqlogin.php?a=1
也可以是:http://www.example.com/qqlogin.php?a=1

你是怎么理解她这段话的?

申请时填写的callback是:mysite.com;example.com
合法的回调地址可以是:http://bbs.mysite.com/qqlogin.php?a=1
也可以是:http://www.example.com/qqlogin.php?a=1

你是怎么理解她这段话的?



就是说,回调地址是可以带参数的,但是现在的回调地址是不可以带参数的

只要能跳转到你的回调地址取得到code的值就OK了吧,至于怎么跳转、跳转中间的问题这些你可以去慢慢体会

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Dependency Injection in PHP: Avoiding Common PitfallsDependency Injection in PHP: Avoiding Common PitfallsMay 16, 2025 am 12:17 AM

DependencyInjection(DI)inPHPenhancescodeflexibilityandtestabilitybydecouplingdependencycreationfromusage.ToimplementDIeffectively:1)UseDIcontainersjudiciouslytoavoidover-engineering.2)Avoidconstructoroverloadbylimitingdependenciestothreeorfour.3)Adhe

How to Speed Up Your PHP Website: Performance TuningHow to Speed Up Your PHP Website: Performance TuningMay 16, 2025 am 12:12 AM

ToimproveyourPHPwebsite'sperformance,usethesestrategies:1)ImplementopcodecachingwithOPcachetospeedupscriptinterpretation.2)Optimizedatabasequeriesbyselectingonlynecessaryfields.3)UsecachingsystemslikeRedisorMemcachedtoreducedatabaseload.4)Applyasynch

Sending Mass Emails with PHP: Is it Possible?Sending Mass Emails with PHP: Is it Possible?May 16, 2025 am 12:10 AM

Yes,itispossibletosendmassemailswithPHP.1)UselibrarieslikePHPMailerorSwiftMailerforefficientemailsending.2)Implementdelaysbetweenemailstoavoidspamflags.3)Personalizeemailsusingdynamiccontenttoimproveengagement.4)UsequeuesystemslikeRabbitMQorRedisforb

What is the purpose of Dependency Injection in PHP?What is the purpose of Dependency Injection in PHP?May 16, 2025 am 12:10 AM

DependencyInjection(DI)inPHPisadesignpatternthatachievesInversionofControl(IoC)byallowingdependenciestobeinjectedintoclasses,enhancingmodularity,testability,andflexibility.DIdecouplesclassesfromspecificimplementations,makingcodemoremanageableandadapt

How to send an email using PHP?How to send an email using PHP?May 16, 2025 am 12:03 AM

The best ways to send emails using PHP include: 1. Use PHP's mail() function to basic sending; 2. Use PHPMailer library to send more complex HTML mail; 3. Use transactional mail services such as SendGrid to improve reliability and analysis capabilities. With these methods, you can ensure that emails not only reach the inbox, but also attract recipients.

How to calculate the total number of elements in a PHP multidimensional array?How to calculate the total number of elements in a PHP multidimensional array?May 15, 2025 pm 09:00 PM

Calculating the total number of elements in a PHP multidimensional array can be done using recursive or iterative methods. 1. The recursive method counts by traversing the array and recursively processing nested arrays. 2. The iterative method uses the stack to simulate recursion to avoid depth problems. 3. The array_walk_recursive function can also be implemented, but it requires manual counting.

What are the characteristics of do-while loops in PHP?What are the characteristics of do-while loops in PHP?May 15, 2025 pm 08:57 PM

In PHP, the characteristic of a do-while loop is to ensure that the loop body is executed at least once, and then decide whether to continue the loop based on the conditions. 1) It executes the loop body before conditional checking, suitable for scenarios where operations need to be performed at least once, such as user input verification and menu systems. 2) However, the syntax of the do-while loop can cause confusion among newbies and may add unnecessary performance overhead.

How to hash strings in PHP?How to hash strings in PHP?May 15, 2025 pm 08:54 PM

Efficient hashing strings in PHP can use the following methods: 1. Use the md5 function for fast hashing, but is not suitable for password storage. 2. Use the sha256 function to improve security. 3. Use the password_hash function to process passwords to provide the highest security and convenience.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Safe Exam Browser

Safe Exam Browser

Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!