Home > Backend Development > PHP Tutorial > 微信授权 redirect uri 参数错误

微信授权 redirect uri 参数错误

WBOY
Release: 2016-06-23 13:26:13
Original
1426 people have browsed it

公众号一键授权后 网页授权时一直提示 redirect uri 参数错误
地址格式是: https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=snsapi_base&state=123&component_appid=component_appid#wechat_redirect
求解决



回复讨论(解决方案)

REDIRECT_URI的域名一定要是你这个公众号里面指定的URL

REDIRECT_URI的域名一定要是你这个公众号里面指定的URL


公众号里面指定的URL?  什么意思?


REDIRECT_URI的域名一定要是你这个公众号里面指定的URL


公众号里面指定的URL?  什么意思?

进入公众号后台设置里  有一个设置选项。


就是这个

REDIRECT_URI填写你公众号中指定的URL

解决了 是开放后台的域名填写错误了

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template