Close
Social profiles
Facebook Messenger Box

You can also add Facebook Messenger Box like “facebook like box”. To generate embed code you need go Facebook Page Plugin Documentation

Then you need to add Facebook JavaScript SDK in your site. you can include this before <Body> tag started.

[php]
<div id="fb-root"></div>
<script>(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#xfbml=1&version=v2.6&appId=496223437090509";
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>[/php]

Now you can paste below code where you want to show Messenger Box on your site.

[php]
<div class="fb-page" data-href="https://www.facebook.com/techwithguru" data-tabs="timeline,messages" data-small-header="false" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
<blockquote cite="https://www.facebook.com/techwithguru" class="fb-xfbml-parse-ignore">
<a href="https://www.facebook.com/techwithguru">CoderExample</a>
</blockquote>
</div>
[/php]

Facebook Messenger is an instant messaging service and software application. Originally developed as Facebook Chat in 2008, the company revamped its messaging service in 2010, and subsequently released standalone iOS and Android apps in August 2011.

Checkout more about iOS from iOS category. You can check more from Facebook Messenger Platform.

Leave a Reply

Your email address will not be published. Required fields are marked *

Close