WeChat Mini Programs's problem of sharing pictures with friends

how to share pictures with friends in current page , Click picture preview-> long button appears to send to friends this is not considered !

this is a picture from Wechat"s Open course +-> consultation. If you press and long press directly, it will be sent to your friends. How do you do this?
clipboard.png

Mar.14,2022

interesting question.

after observation, if it is pure Mini Program, the simple implementation of Changan picture display custom menu this function, you can use wx.showActionSheet to achieve.
but the two major functions of sending to friends and favorites have not found the corresponding interface.

what if this page is not Mini Program, but an embedded web page?

clipboard.png

you can give it a try. In Mini Program's webview, use the web page to display a picture


wx.previewImage learn about

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e43760-4c140.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e43760-4c140.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?