jQuery(document).ready(function() {
$(\'#sc_fblogin\').click();
});jQuery(document).ready(function() {
jfbc.login.provider('facebook');
});if ( !JFBCFactory::provider('facebook')->getMappedUserId() )
{
$uri = JURI::getInstance();
$returnUrl = $uri->toString(array('path', 'query'));
JFactory::getApplication()->redirect('index.php?option=com_jfbconnect&task=authenticate.login&provider=facebook&return=' . $returnUrl;
}
else
{
// Do something
}Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
