search

Home  >  Q&A  >  body text

javascript - WeChat JSSDK sharing "send to friends" does not display the shared image correctly

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?

天蓬老师天蓬老师2720 days ago804

reply all(1)I'll reply

  • 迷茫

    迷茫2017-06-12 09:24:54

    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.

    reply
    0
  • Cancelreply