| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Adding Facebook Messaging Code | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|