Blogger Information
Blog 32
fans 1
comment 0
visits 50876
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
微信网页链接分享实现自定义标题 介绍 缩列图的方案
大西瓜的博客
Original
1180 people have browsed it

一、需求描述
图片6.png

如图,图1是其它游戏分享链接的显示效果(前提是在微信中打开并分享出去),图2是我们游戏页面(同样在微信中打开并分享出去)分享链接的显示效果。

要达到图1的自定义文案与图标的效果,经研究与各种尝试,得到的最佳解决方案为采用微信提供的JS-SDK,微信JS-SDK是微信公众平台面向网页开发者提供的基于微信内的网页开发工具包。

 

二、解决方案

不懂技术没有公众号的前往  138tool微信推广助手



1、根据微信JS-SDK的接口文档说明,首先需要有一个为认证号的企业号,这样才有权限调用分享接口。

 
2、绑定域名,登录微信公众平台,进入“公众号设置”的功能设置里面填写js接口安全域名,这个是要填写的是你微信浏览器要打开的域名地址。不能添加IP地址。

3、前端注入js,并调用jssdk所提供的分享接口,其中需要后端提供一个接***务来实现生成签名等必要的参数( timestamp, noceStr,singature)。

图片7.png图片8.png



Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!