javascript - WeChat JSSDK sharing "send to friends" does not display the shared image correctly
天蓬老师
天蓬老师 2017-06-12 09:22:54
0
1
737

During the sharing process through WeChat JSSDK, wx.config was successfully called. The custom processing of "send to friends" was registered in the wx.ready callback
wx.onMenuShareAppMessage
({

title : iOption.title, desc : iOption.desc, link : stShareLink, imgUrl : iOption.imgUrl, success : iOption.success, cancel : iOption.cancel

});

After entering this page, if you click "Send to Friends" immediately, the shared information sent will not display the specified sharing image, nor will it display the description information. You have to wait 5 seconds and click "Send to Friend" before the shared image and description content can be displayed correctly. May I ask where the problems are?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all (1)
迷茫

Use WeChat developer tools to debug and see if there is any delay when calling this API. If not, check to see if the image resource pointed to is too large. Generally, a 200px square image should be very small.

    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!