2

I'm trying to integrate WeChat login with current system.

I own a WeChat offical account and already have AppID and AppSecret.
Server Settings enabled as well.

When I was tring to hit the QRcode scan url with my appid and my own server redirect url as parameter(example as below)

https://open.weixin.qq.com/connect/qrconnect?appid=wxbdc5610cc59c1631&redirect_uri=https%3A%2F%2Fpassport.yhd.com%2Fwechat%2Fcallback.do&response_type=code&scope=snsapi_login&state=3d6be0a4035d839573b04816624a415e#wechat_redirect

The browser threw me this error page enter image description here

What I expect is something like this

enter image description here

Question:

1. Is it because of I didn't go through the wechat verification thus unable to obtain the user basic information?

2. How to get the wechat verification?

VincentGeng
  • 75
  • 1
  • 10
  • Maybe this question should be asked to their customer support? They have a link at the bottom of the page for this. – Syfer Jun 21 '17 at 05:54

3 Answers3

1
  1. Is it because of I didn't go through the wechat verification thus unable to obtain the user basic information?

    Yes. To integrate wechat login, your wechat official account must be verified service account (subscribe account is not supported, even it is verified). Please refer to official document for more information.

  2. How to get the wechat verification?

    To get the wechat official account verified, you can follow the steps in the customer support document.

shaochuancs
  • 15,342
  • 3
  • 54
  • 62
1

For anyone who stumbles upon this issue, this a redirect uri issue and weixin dashboard doesn't address it properly. First of all get a your application registered and approved from weixin (very painful and long process). Then in Admin center / application details of the registered application Authorization callback domain field should be just domain name. For example xyz.com is authorized domain then authorization callback domain should also be xyz.com without any URI, but when you are making the API call use your own encoded URI so redirect_uri = http%3A%2F%2Fxyz.com%2Fwechat%2Flogin

0
  1. Your Official Account must be a Service Account
  2. In the Basic Configuration,you can add your sever's IP to the IP White List,so that you can get the access_token by your AppID and AppSecret.
Adrita Sharma
  • 21,581
  • 10
  • 69
  • 79