javascript - When sharing a webpage to WeChat Moments, how to add some titles and background images when sharing it to WeChat friends? ? ? ?
黄舟
黄舟 2017-05-16 13:39:11
0
4
617

The first few items are shared from iOS. They have some native interfaces and are easy to make. When the H5 page is shared, the following are just links. Does this require adjusting the WeChat interface? ? ? ?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(4)
小葫芦

Need WeChat’s jssdk

滿天的星座

Use jssdk, configure the config and you can call the interface. .

黄舟

jssdk

Get the click status of the "Share to Moments" button and customize the sharing content interface

wx.onMenuShareTimeline({
    title: '', // 分享标题
    link: '', // 分享链接
    imgUrl: '', // 分享图标
    success: function () { 
        // 用户确认分享后执行的回调函数
    },
    cancel: function () { 
        // 用户取消分享后执行的回调函数
    }
});
过去多啦不再A梦

You need a certified WeChat official account, other WeChat interface documents have been written very clearly,

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!