Instructions to add Live chat facebook to blogspot

guide you to integrate Live chat facebook for the latest blogspot, how to add Facebook Messenger for blogspot and website to help users chat directly on your blogspot.

You can watch the demo right on your website.

First copy the code below followed by the closing tag </body>

<div id='fb-root'></div>
<script type='text/javascript'>
    window.addEventListener('load', function() {
        var is_load = 0
        function loadfb() {
            if (is_load == 0) {
                is_load = 1
                var an = document.createElement('script')
                an.async = true;
                an.src = ''
                var sc = document.getElementsByTagName('script')[0]
                sc.parentNode.insertBefore(an, sc)
        window.addEventListener('scroll', function() {

<div attribution='setup_tool' class='fb-customerchat' logged_in_greeting=' xin chào bạn' logged_out_greeting='Chào mừng bạn đến với Website' page_id='1356413763240991' theme_color='#0084ff'></div>

If your blogspot has other code, then delete it instead of the above code.
- appId: Is your App ID, if not, you go to to create.
- page_id: Your fanpage ID, to find your fanpage ID here
You change your ID in the 2 place ID above.
- logged_in_greeting: Greeting when the user has logged on facebook on the browser.
- logged_out_greeting: Greetings when the user has not logged into facebook in the browser yet.

Then you save, and access your fanpage, under Settings - the left menu bar select Advanced Messaging - In the Domain section to be put into the valid list you receive your blog link to and save Back and back to your blog site check.

Note: The above JavaScript to connect to facebook has been modified to optimize the page loading speed for blogspot, only when you scroll the page will all applications such as Like, Share, Live chat, Comment ... What's related to Facebook just works.

Good luck!