Title: Adding Facebook Customer Chat
Last modified: March 20, 2019

---

# Adding Facebook Customer Chat

 *  Resolved [cherhyc](https://wordpress.org/support/users/cherhyc/)
 * (@cherhyc)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/adding-facebook-customer-chat/)
 * Trying to add the facebook chat bot to the coming soon page but can’t add the
   code as footer is not enable for the theme. Not sure what to do.
 * [https://gretathemes.com/guides/facebook-customer-chat/](https://gretathemes.com/guides/facebook-customer-chat/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadding-facebook-customer-chat%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [NiteoThemes](https://wordpress.org/support/users/niteo/)
 * (@niteo)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/adding-facebook-customer-chat/#post-11335628)
 * Hello, yes we do not use standard WordPress templates in order to achieve ‘coming
   soon’ functionality.
 * But you can add the required code to the Content editor using text mode in CMP
   Settings, it should work as well.
 * Alex
 *  Thread Starter [cherhyc](https://wordpress.org/support/users/cherhyc/)
 * (@cherhyc)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/adding-facebook-customer-chat/#post-11344738)
 * Do you mean CMP Settings > Content > Main Content > Message > Text Editor?
    I
   have add the code there but it wasn’t working.
 * This is the code I used:
 *     ```
       <!-- Load Facebook SDK for JavaScript -->
       <div id="fb-root"></div>
       <script>
         window.fbAsyncInit = function() {
           FB.init({
             xfbml            : true,
             version          : 'v3.2'
           });
         };
   
         (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 = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js';
         fjs.parentNode.insertBefore(js, fjs);
       }(document, 'script', 'facebook-jssdk'));</script>
   
       <!-- Your customer chat code -->
       <div class="fb-customerchat"
         attribution=setup_tool
         page_id="1057822754268049">
       </div>
       ```
   
 *  Plugin Author [NiteoThemes](https://wordpress.org/support/users/niteo/)
 * (@niteo)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/adding-facebook-customer-chat/#post-11347423)
 * Seems it is wrapped in paragraph tags, therefore it’s not working..
 * You can try to do following:
 * 1. Insert just the HTML part into text editor like this
 * > [View post on imgur.com](https://imgur.com/a/SLbdlin)
 * 2. Save javascript into external something.js file, upload it to your server 
   via ftp, and insert it to advanced > external footer scripts
 * > [View post on imgur.com](https://imgur.com/a/l5ZeQf2)
    -  This reply was modified 7 years, 2 months ago by [NiteoThemes](https://wordpress.org/support/users/niteo/).

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Adding Facebook Customer Chat’ is closed to new replies.

 * ![](https://ps.w.org/cmp-coming-soon-maintenance/assets/icon-256x256.png?rev=
   2393184)
 * [CMP - Coming Soon & Maintenance Plugin by NiteoThemes](https://wordpress.org/plugins/cmp-coming-soon-maintenance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cmp-coming-soon-maintenance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/)
 * [Active Topics](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cmp-coming-soon-maintenance/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [NiteoThemes](https://wordpress.org/support/users/niteo/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/adding-facebook-customer-chat/#post-11347423)
 * Status: resolved