2 jm330 jm330 于 2014.08.12 13:31 提问

第三方应用请求微信授权登入的问题,错误提示是scope参数错误或没有scope权限

final SendAuth.Req req = new SendAuth.Req();
req.scope = "snsapi_userinfo";
req.state = "none";
api.sendReq(req);

APPID和AppSecret是从微信官网申请下来的,应该没错。

错误提示是scope参数错误或没有scope权限
请问这是什么问题造成的呢?

15个回答

liuchongming
liuchongming   2015.03.09 18:46

在 网页授权获取用户基本信息 的配置里填写域名

Hiker_5
Hiker_5 能否具体点?
10 个月之前 回复
mc616
mc616   2014.11.29 12:07

启动tomcat7遇到错误!
tomcat
2013-7-1 10:34:46 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/lib/i386;.;C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_10\bin;F:\eclipse1\android-sdk-windows\tools;F:\eclipse1\android-sdk-windows\platform-tools;E:\MATLAB7\bin\win32;D:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\j2ee1\eclipse;
2013-7-1 10:34:46 org.apache.tomcat.util.digester.SetPropertiesRule begin

qq_23699569
qq_23699569   2014.12.12 20:13

snsapi_userinfo 是需要认证开发者后才可以申请开通的

cl6314956
cl6314956   2014.11.24 17:00

snsapi_userinfo 是需要认证开发者后才可以申请开通的

mc616
mc616   2014.11.29 12:14

启动tomcat7遇到错误!
tomcat
2013-7-1 10:34:46 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/lib/i386;.;C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_10\bin;F:\eclipse1\android-sdk-windows\tools;F:\eclipse1\android-sdk-windows\platform-tools;E:\MATLAB7\bin\win32;D:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\j2ee1\eclipse;
2013-7-1 10:34:46 org.apache.tomcat.util.digester.SetPropertiesRule begin

mc616
mc616   2014.11.29 12:15

snsapi_userinfo 是需要认证开发者后才可以申请开通的

mc616
mc616   2014.11.29 12:16

启动tomcat7遇到错误!
tomcat
2013-7-1 10:34:46 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_10/bin/../jre/lib/i386;.;C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Java\jdk1.6.0_10\lib\tools.jar;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Java\jdk1.6.0_10\bin;F:\eclipse1\android-sdk-windows\tools;F:\eclipse1\android-sdk-windows\platform-tools;E:\MATLAB7\bin\win32;D:\Program Files\TortoiseSVN\bin;C:\Program Files\MySQL\MySQL Server 5.5\bin;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;D:\j2ee1\eclipse;
2013-7-1 10:34:46 org.apache.tomcat.util.digester.SetPropertiesRule begi

mc616
mc616   2014.11.29 12:39

final SendAuth.Req req = new SendAuth.Req();
req.scope = "snsapi_userinfo";
req.state = "none";
api.sendReq(req);
APPID和AppSecret是从微信官网申请下来的,应该没错。
错误提示是scope参数错误或没有scope权限
请问这是什么问题造成的呢?

qq_31745199
qq_31745199   2015.10.03 17:55

完全不懂什么意思????楼主最后解决没

jianguo_liao19840726
jianguo_liao19840726   2015.11.17 17:03

能说说怎么解决的码?我也遇到了折腾死了

bzp2010
bzp2010 回复这就是爱啊1123: 清除Cookie
9 个月之前 回复
zhejiushiaia1123
zhejiushiaia1123 回复sdjzyuxinburen: 请问这个问题解决了吗
9 个月之前 回复
sdjzyuxinburen
sdjzyuxinburen 你好,你的这个微信登陆的问题解决了吗最后,我今天项目也遇到这个问题了。
一年多之前 回复
共15条数据 1 尾页
Csdn user default icon
上传中...
上传图片
插入图片