Topic-icon Facebook login bottom don`t work

Active Subscriptions:

None
9 years 9 months ago #46318 by vinchu
The button of Facebook login didn't work.
I have removed other Facebook application and reinstall JFBConnect , the autotune is completed with any warning message.
my website: www.smec.org.tw, the login button located on right top side of frontage.

could you help me?
The topic has been locked.
Support Specialist
9 years 9 months ago #46328 by alzander
The issue is because your template is trying to re-initialize the Facebook Javascript library. If you look at the HTML of your page, the following block is what's causing the problem:
<div id="gkfb-root"></div>
<script type="text/javascript">

//<![CDATA[
   	window.fbAsyncInit = function() {
		FB.init({ appId: '171342606239806', 
			status: true, 
			cookie: true,
			xfbml: true,
			oauth: true
		});
   		    
	  		};
    //      
   window.addEvent('load', function(){
        (function(){
                if(!document.getElementById('fb-root')) {
                     var root = document.createElement('div');
                     root.id = 'fb-root';
                     document.getElementById('gkfb-root').appendChild(root);
                     var e = document.createElement('script');

                     e.async = true;
                 document.getElementById('fb-root').appendChild(e);   
                }
        }());
    }); 
    //]]>
</script>
That block needs to be removed as it's re-initializing the Facebook Javascript library in a way that's incompatible with the new way that Facebook and JFBConnect requires.

Please go through your template settings to disable features like Social Login and that should fix your issue.

I hope that helps,
Alex
The topic has been locked.
Active Subscriptions:

None
9 years 9 months ago #46388 by vinchu
It work! the problem is solved, thanks
The topic has been locked.
Support Specialist
9 years 9 months ago #46390 by alzander
I'm glad to hear that helped you narrow down the problem. If you run into any other issues, or have any feedback for us, please let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.