title: How to share text and link from android app to messenger?
body: <p>I want to have possibility to share some text and link from my app to Messenger and get message like this:
  (Message shared from Elephant Evolution app)</p>
  <p><a href="https://i.stack.imgur.com/8sjsw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8sjsw.png" alt="Message shared from Elephant Evolution app" /></a></p>
  <p>This is my code:</p>
  <pre><code>                //SHARING TO FACEBOOK
              String photoURL = &quot;https://play.google.com/&quot;;
              if(!mEvent.getPhotoUrl().isEmpty()){
                  photoURL=mEvent.getPhotoUrl();
              }
              String quoteToShare = &quot;someText&quot;;
              ShareLinkContent content = new ShareLinkContent.Builder()
                      .setContentUrl(Uri.parse(photoURL))
                      .setQuote(quoteToShare)
                      .build();
              //ShareDialog.show(EventActivity.this,content);
              MessageDialog.show(EventActivity.this, content);
  </code></pre>
  <p>And with this code I am sharing only link:</p>
  <p><a href="https://i.stack.imgur.com/MbbWw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MbbWw.png" alt="enter image description here" /></a></p>
  <p>When I am sharing the same &quot;ShareLinkContent&quot; to facebook, everything works good. Could anyone help me :) ?</p>