Design Lab | Code资源【智慧链接Link Tool】功能
爱用建站
DESIGN LAB
2020-12-15
Design Lab Code资源【智慧链接Link Tool】功能可以为用户提供微信带图分享功能,开启该功能可增强微信端用户体验
如何实现微信带图分享?
准备条件
1、已认证微信公众号
2、已备案域名
设置JS-API
1.获取AppSecret
2.获取安全域名验证文件
3.爱用建站输入AppSecret、上传验证文件并提交
4.填写IP白名单
一、获取AppSecret
1.登录【微信公众平台】,点击首页左侧菜单栏【开发】-【基本配置】。
2.勾选同意协议,点击【成为开发者】。
3.开发者密码设置
(1)微信管理员通过微信扫码进行身份确认;
(2)密码验证,填写【登录密码】,输入【验证码】,点击【下一步】;
(3)查看开发者密码,点击【复制】AppSecret,保存好AppSecret,点击【确认并进行下一步】。
Tips:爱用建站设置JS-API时要用到AppSecret。
二、获取安全域名验证文件
1.点击首页左侧菜单栏【设置】-【公众号设置】。
2.点击【功能设置】,找到JS接口安全域名,点击【设置】。
3. 下载验证文件。
(1)点击下载文件(建议下载到桌面,方便查找,可重复使用)。
下载后保留在此页面,域名先不用填写,后面可粘贴域名到此处。
(2)下载后如图所示。
Tips:爱用建站设置JSAPI时要上传这份文件。
三、爱用建站设置JS-API
1.PC端登陆爱用建站,点击【智慧链接】。
2.点击【微信】-【公众号管理】,点击【直接授权】。(微信公众号已授权的可忽略这一步骤)
3.扫描二维码进行公众平台账号授权。
4.授权成功后点击【高级设置】。
5.填写公众号APP Secret,上传验证文件后点击【提交】。
6.复制安全域名,粘贴安全域名到公众号后台,点击【保存】。
四、填写IP白名单
1.拷贝【设置公众号IP白名单】的ip。
2.微信公众平台进入【开发】->【基本配置】->【IP白名单】中,填写智慧链接中【公众号IP白名单】。
{"weixin":{"label":"微信","name":"weixin","selected":true,"value":true,"sortid":"1","shareid":"weixin","sharetitle":"分享到微信","event":"shareToWeiXin","lang":"shareWeb_WeiXin"},"copy":{"label":"复制网址","name":"copy","selected":true,"value":true,"sortid":"2","shareid":"copy","sharetitle":"复制网址","event":"copy_url","lang":"shareWeb_Copy"},"qq":{"label":"QQ好友","name":"qq","selected":true,"value":false,"sortid":"1","shareid":"qq","sharetitle":"分享到QQ","event":"shareToQQ","lang":"shareWeb_QQ"},"sina_weibo":{"label":"新浪微博","name":"sina_weibo","selected":true,"value":true,"sortid":"4","shareid":"sina_weibo","sharetitle":"分享到新浪微博","event":"shareToSinaWB","lang":"shareWeb_SinaWeiBo"},"qq_zone":{"label":"QQ空间","name":"qq_zone","selected":true,"value":true,"sortid":"5","shareid":"qq_zone","sharetitle":"分享到QQ空间","event":"shareToQzone","lang":"shareWeb_QQZone"},"renren":{"label":"人人网","name":"renren","selected":true,"value":true,"sortid":"7","shareid":"renren","sharetitle":"分享到人人网","event":"shareToRenren","lang":"shareWeb_RenRen"},"douban":{"label":"豆瓣网","name":"douban","selected":true,"value":true,"sortid":"8","shareid":"douban","sharetitle":"分享到豆瓣网","event":"shareToDouban","lang":"shareWeb_DouBan"},"baidu_tieba":{"label":"百度贴吧","name":"baidu_tieba","selected":true,"value":true,"sortid":"10","shareid":"baidu_tieba","sharetitle":"分享到百度贴吧","event":"shareToTieba","lang":"shareWeb_TieBa"},"Facebook":{"label":"Facebook","name":"Facebook","selected":true,"value":true,"sortid":"11","shareid":"Facebook","sharetitle":"分享到FaceBook","event":"shareToFacebook","lang":"shareWeb_Facebook"},"Twitter":{"label":"Twitter","name":"Twitter","selected":true,"value":true,"sortid":"12","shareid":"Twitter","sharetitle":"分享到Twitter","event":"shareToTwitter","lang":"shareWeb_Twitter"},"LinkedIn":{"label":"LinkedIn","name":"LinkedIn","selected":true,"value":true,"sortid":"13","shareid":"LinkedIn","sharetitle":"分享到linkedIn","event":"shareToLinkedin","lang":"shareWeb_Linkedin"},"whatsapp":{"label":"whatsapp","name":"whatsapp","selected":true,"value":true,"sortid":"15","shareid":"whatsapp","sharetitle":"分享到whatsapp","event":"shareToWhatsapp","lang":"shareWeb_whatsapp"},"line":{"label":"line","name":"line","selected":true,"value":true,"sortid":"15","shareid":"line","sharetitle":"分享到line","event":"shareToLine","lang":"shareWeb_line"},"qq_weibo":{"label":"腾讯微博","name":"qq_weibo","selected":true,"value":true,"sortid":"3","shareid":"qq_weibo","sharetitle":"分享到腾讯微博","event":"shareToQQwb","lang":"shareWeb_QQWeiBo"},"peopleBlog":{"label":"人民微博","name":"propleBlog","selected":true,"value":true,"sortid":"14","shareid":"propleBlog","sharetitle":"分享到人民微博","event":"shareToPeopleBlog","lang":"shareWeb_peopleBlog"}}