Home  >  Article  >  Backend Development  >  The openid obtained by WeChat oauth login is different from the openid in the following user list.

The openid obtained by WeChat oauth login is different from the openid in the following user list.

WBOY
WBOYOriginal
2016-09-25 09:23:051466browse

The website is connected to the WeChat code scanning login (oauth) function (automatically follows the public account). After logging in, I will get the openid of the logged in user and save it.

I need to use openid to send targeted messages to users, but the test failed in the middle of the night

After debugging, I found that the openid obtained through oauth is different from the openid obtained by directly calling the API to obtain the list of followed users! !

Why is it different?
Is there any way to correspond?
I need to use openid to send messages, and the openid obtained through oauth cannot send messages.

Dear masters, please give me some advice, thank you!
Waiting online urgently. .

Statement:
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