Here the docs from FB: https://developers.facebook.com/docs/messenger-platform/reference/buttons/share
There is an issue (maybe a Facebook bug) that cause an error from FB API in case buttons have the field webview_share_button that's the reason why I had to add the function removeWebviewShareButton in order to remove that field only in case of share_contents
Here the docs from FB: https://developers.facebook.com/docs/messenger-platform/reference/buttons/share There is an issue (maybe a Facebook bug) that cause an error from FB API in case buttons have the field webview_share_button that's the reason why I had to add the function removeWebviewShareButton in order to remove that field only in case of share_contents