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

Join Date: Oct 2014
Posts: 7

Default Adding Facebook Messaging Code


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>
window.fbAsyncInit = function() {
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); = id;
js.src = '';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<!-- Your Chat Plugin code -->
<div class="fb-customerchat"
X-Cart v4.4.3 Gold
X-Cart Mobile
Reply With Quote