I have noticed that after I scan QR code for your site, I am called back to the link like:
https://www.xiaomac.com/wp-login.php?code=…….
However, when I scan QR code for my site, I am called back to the link like:
http://mysite.cn/?connect=wechat&action=callback&code=…….
Plugin Author
Link
(@playes)
what exactly errer did you get?
1, make sure you WeChat account comes from https://open.weixin.qq.com/, not https://mp.weixin.qq.com/.
2, make sure your server have a curl
function of php.
as the differences of login link, new version can reset the callback link, with a better compatibility when error occur during login.
Thanks a lot!!!! The problem was in 2 – Curl wasn’t enabled.
Could you please, share why cURL is important for WeChat, but for example GitHub oAuth worked jsut fine without it?
Plugin Author
Link
(@playes)
now making progress!
my good guess is the example you said probably use something like file_get_contents
instead of cURL when it found dead.
ps, that ring me a bell, next version i’ll learn a thing or two like that 🙁