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

WBOY
Release: 2016-09-25 09:23:05
Original
1466 people have browsed it

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. .

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!