Message-Us Plugin

The "Message Us" plugin can be used to immediately start a conversation and send the person to Messenger. On the desktop web, the user is sent to messenger.com and on mobile they are sent to the Messenger native app.

Setup

<body>
  <script>

    window.fbAsyncInit = function() {
      FB.init({
        appId: "APP_ID",
        xfbml: true,
        version: "v2.6"
      });

    };

    (function(d, s, id){
       var js, fjs = d.getElementsByTagName(s)[0];
       if (d.getElementById(id)) { return; }
       js = d.createElement(s); js.id = id;
       js.src = "//connect.facebook.net/en_US/sdk.js";
       fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));

  </script>

...    

Plugin Code

<div class="fb-messengermessageus" 
  messenger_app_id="APP_ID" 
  page_id="PAGE_ID"
  color="blue"
  size="standard" >
</div>    

Settings

Setting HTML5 attribute Values Default

color

data-color

blue or white

blue

size

data-size

standard, large or xlarge

large

Callback

This plugin does not trigger a callback to your webhook. However, you will receive a message callback when the user sends a message to the page.