Sharing to Messenger for the Web

Sharing to Messenger lets publishers easily enable their readers to share something to Messenger. Sharing to Messenger uses a deep link that enables sharing from mobile web sites to the Messenger iOS and Android native applications. The deep link will open the Messenger application directly with the share flow opened and populated with a provided link. If the Messenger app is not installed, the Deep Link will not do anything. Sharing to Messenger has the following advantages compared to the other existing options (SDK, Plugin):

  • Easiest option: Publishers can implement sharing with a few lines of code.
  • Flexible: Allows publishers to choose their own button for sharing.

The link works on mobile web sites on iOS and Android platforms, with native apps, but deep linking does not work with webviews.

You can implement sharing to Messenger as a link or as a method call in JavaScript.


<a href=”fb-messenger://share/?link=”>Send In Messenger</a>

JavaScript'fb-messenger://share?link=' + encodeURIComponent(link) + '&app_id=' + encodeURIComponent(app_id));


Parameter Description


Your app's unique identifier.


The URL that is being sent in the message. This must be URL encoded. Required parameter.

Response Data

There is no response data from this dialog.