Pages: 1
Hello/Hi/Greetings,
I'm struggling to get the Facebook Messenger Java script to work in PIWIGO.
I've tried a few on-line tutorials for including javascript but none seem to work, probably because they are very old and the software has "move on"! :)
Any help in getting FB Messenger script working would be greatly appreciated. Preferably in the "Additional Pages"
Piwigo 2.10.1
Operating system: Linux
PHP: 7.2.24-0ubuntu0.18.04.2
MySQL: 5.7.28-0ubuntu0.18.04.4
Graphics Library: External ImageMagick 6.9.7-4
Piwigo URL: http://gallery.soft-focus-imagining.com
Here is the javascript I'm trying to use .....
<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v5.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 customer chat code -->
<div class="fb-customerchat"
attribution=install_email
page_id="112333052144767">
</div>
Offline
I've discovered that this was "Operator Error"! ....
I didn't realize that I had to "Whitelist" the origin site in Facebook.
It's not at all clear when you are originally setting this up.
Hope this helps someone else with the same / similar problem.
Nigel.
Offline
Pages: 1