Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FromUserID能否轉化成真正的User 名或ID #22

Open
vichanws opened this issue Aug 12, 2014 · 7 comments
Open

FromUserID能否轉化成真正的User 名或ID #22

vichanws opened this issue Aug 12, 2014 · 7 comments

Comments

@vichanws
Copy link

你好,我的是服務號,能否將FromUserID能否轉化成真正的User 名或ID,再把資料存入伺服器,謝謝

@undeadking
Copy link
Contributor

不能.最多就获取个昵称

@piscdong
Copy link

FromUserID其实是用户的openid,可以通过openid获取到昵称,openid本身是固定唯一的,可以作为id使用

@standly
Copy link

standly commented Aug 12, 2014

不是说openid相对于同一个公众号id是唯一的,然而对于不同的公众号是不唯一的么
也就是说不同的公众号的同一个openid可能对应的不是同一个微信号
求证一下

[email protected]

发件人: PiscDong studio
发送时间: 2014-08-12 10:24
收件人: netputer/wechat-php-sdk
主题: Re: [wechat-php-sdk] FromUserID能否轉化成真正的User 名或ID (#22)
FromUserID其实是用户的openid,可以通过openid获取到昵称,openid本身是固定唯一的,可以作为id使用

Reply to this email directly or view it on GitHub.

@piscdong
Copy link

同一用户对于不同公众号的有不同的openid,但是不会出现不同公众号有相同的openid

@vichanws
Copy link
Author

怎樣能用openid获取个昵称?不好意思,我是WeChat新手,謝謝

@undeadking
Copy link
Contributor

同一个用户在不同公众号下面的openid是不一样的,无法跨公众号.不同公众号你还想遇到openid碰撞?想多了吧

多公众号确定用户应该用UnionID
微信公众平台更新,为开发者提供UnionID机制

@piscdong
Copy link

openid获取昵称请参考:http://mp.weixin.qq.com/wiki/index.php?title=获取用户基本信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants