Hi there,
I have been working all day trying to get the login module working however, the connect with facebook button does not appear.
Firstly, I'm 100% sure confident it's setup all perfectly as I followed the instructions to a tee. I, set up a new facebook app after installing the component etc, populated the necessary data, updated the component config in the joomla backend.
No matter what I do, the newly published
sclogin module will not display the facebook button. Instead, the text, '
Login With Facebook' appears with no link. From looking at the source/developer tools on the page I can see that there is a javascript error that pertains to the problem.
Here is the script (displayed from the body tag):
window.fbAsyncInit = function() {
FB.init({appId: '237060243049006', status: true, cookie: true, xfbml: true, oauth: true, channelUrl: 'https://www.learnthrusong.co.uk/components/com_jfbconnect/assets/jfbcchannel.php'});
};
(function(d){
var js, id = 'facebook-jssdk'; if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src="https://www.learnthrusong.co.uk/connect.facebook.net/en_GB/all.js"; // THIS IS THE LINE THAT LOOKS WRONG //
d.getElementsByTagName('head')[0].appendChild(js);
}(document));
Shouldn't that line look like:
js.src="https://connect.facebook.net/en_GB/all.js"
?
The error that I get in console is "GET
www.learnthrusong.co.uk/connect.facebook.net/en_GB/all.js 404 (Not Found)" which stands to reason as this file doesn't exist. I think that the problem is that, somewhere, the base url, i.e. "
www.learnthrusong.co.uk/" is getting prepended to the full path which I know should be "
connect.facebook.net/en_GB/all.js" as I checked and that is a JS file on facebook's site.
Also, I tried changing the 'assets/jfbcchannel.php' so that the
// BECAME //
// However, this didn't change a thing.
I've now restored it and anything I've changed to default.
Other Info
My site is totally SSL'd (SSL ALL UP TO DATE) so you access the site from https ALWAYS. I'm using SH404 SEF in J1.5 which I thought may be part of the problem however, after disabling it (and joomla's built in SEF) it still doesn't work.
I've also switched the template to the standard joomla to no avail. Additionally, I've tried disabling all modules on the page that include any JS again, the module doesn't work.
I'm really baffled by this so please, any help would be massively appreciated ASAP as I needed to complete this already.
Thanks in advance!
Gez
P.S. I'll PM you access immediately this posts