pcl-labs / whynot.earth

Why Not Earth is a marketing agency with a philanthropic streak. Besides providing world-class digital development, tech training, and AI-based marketing campaigns for our clients, we also donate these services in support of social and environmental NGOs around the world. Why Not Earth does the tech that helps you make Earth a better place to live.
https://whynot.earth
GNU Affero General Public License v3.0
8 stars 4 forks source link

Adding Facebook Messenger Plugin #85

Closed sotheaYouk closed 3 years ago

sotheaYouk commented 3 years ago

Instant chat feature Allows customer to send messages by logging in to their Facebook account or as a guest

Code Snippet

 <div id="fb-root"></div>
      <script>
        window.fbAsyncInit = function() {
          FB.init({
            xfbml            : true,
            version          : 'v10.0'
          });
        };
        (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 Chat Plugin code -->
      <div class="fb-customerchat"
        attribution="biz_inbox"
        page_id="574991412558690">
      </div>
sotheaYouk commented 3 years ago

PLEASE IGNORE THIS ISSUE

I was supposed to create this issue in hotel-website-vkirirom.com but didn't look at the repo name properly.