Embedding the Facebook Messenger Customer Chat Plugin on web applications enables direct customer support messaging linked to your Facebook Business Page.
Meta Chat SDK Integration Snippet
<!-- Facebook Messenger Chat Plugin Code -->
<div id="fb-root"></div>
<div id="fb-customer-chat" class="fb-customerchat"></div>
<script>
var chatbox = document.getElementById('fb-customer-chat');
chatbox.setAttribute("page_id", "YOUR_PAGE_ID");
chatbox.setAttribute("attribution", "biz_inbox");
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v18.0'
});
};
</script>
Comments and corrections