View Single Post
  #1  
Old 06-22-2020, 05:16 PM
 
cocopops cocopops is offline
 

Newbie
  
Join Date: Oct 2014
Posts: 7
 

Default Adding Facebook Messaging Code

Hi,

I am trying to insert a Facebook Messaging widget. Any idea which ".tpl" file I need to insert it into? Also, I read somewhere before that I need to add literal tags for this kind of code. Is that correct?

Here are the instructions i was given from Facebook:

Simply paste the code snippet below into your website code. We recommend placing the code after the opening <body> tag on pages where you want the plugin to appear.

<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v7.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=install_email
page_id="XXXXXXXXXXX">
</div>
__________________
X-Cart v4.4.3 Gold
X-Cart Mobile
Reply With Quote