I would like to share an url from a website (using mobile device) to facebook messenger app.
I tried to use:
FB.ui({
method: \'send\',
link: \'ht
This is what you are looking for:
Link:
Send In Messenger
JavaScript:
window.open('fb-messenger://share?link=' + encodeURIComponent(link) + '&app_id=' + encodeURIComponent(app_id));
Please note that it works only on mobile. For more information see here:
https://developers.facebook.com/docs/sharing/messenger/web