'WeChat oauth 2 doesn't work - how to fix?
I'm trying to setup Wechat oauth login. I have verified international account ("subscription" type), but an example from documentation doesn't work for my appid https://open.weixin.qq.com/connect/qrconnect?appid=wx13243a5b6496168e&redirect_uri=http://foo.bar/baz&response_type=code&scope=snsapi_login
Scope 参数错误或没有 Scope 权限
I guess this may be because of "subscription" type, but there were no such options during a registration process.
What should I do to enable WeChat oauth for my site?
Solution 1:[1]
for anyone who tries to do the OAuth with wechat in swift, you can follow this link here to start with SDK integration, then this link to integrate OAuth. i post it here because the above link you provided has expired.
the error message above basically means you didn't specify the scope of your request. the second link has it.
// Build a SendAuthReq structure
SendAuthReq* req =[[[SendAuthReq alloc]init]autorelease];
req.scope = @"snsapi_userinfo";
req.state = @"123";
// The third party sends a SendAuthReq message structure to the Weixin platform.
[WXApi sendReq:req];
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Martian2049 |
