小程序
小游戏
企业微信
微信支付
扫描小程序码分享
现在小程序如何获取用户头像昵称等信息?
7 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
目前个人觉得最优方案,一键获取真实头像和昵称:https://blog.csdn.net/think_about_it/article/details/148851745
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html 通过这个获取,但是必须完善用于隐私保护协议
获取头像和昵称的能力,需要用户点击获取和选择填写,参考文档规范:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
头像是临时路径,需要上传服务器上,后端做处理。
可以看下这篇文章
https://developers.weixin.qq.com/community/develop/article/doc/000e2ad2c74870c42640306b36b813
获取头像昵称请使用头像昵称填写功能https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
当前如果有头像和昵称获取的需要,只能让用户自己填写:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
本回答由AI生成,可能已过期、失效或不适用于当前情形,请谨慎参考
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
目前个人觉得最优方案,一键获取真实头像和昵称:https://blog.csdn.net/think_about_it/article/details/148851745
https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html 通过这个获取,但是必须完善用于隐私保护协议
获取头像和昵称的能力,需要用户点击获取和选择填写,参考文档规范:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
头像是临时路径,需要上传服务器上,后端做处理。
可以看下这篇文章
https://developers.weixin.qq.com/community/develop/article/doc/000e2ad2c74870c42640306b36b813
获取头像昵称请使用头像昵称填写功能https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html
当前如果有头像和昵称获取的需要,只能让用户自己填写:https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/userProfile.html