$user =& JFactory::getUser(); // Get the current user
if (!$user->guest)
{
include_once (JPATH_ADMINISTRATOR.DS.'components'.DS.'com_jfbconnect'.DS.'models'.DS.'usermap.php');
$userMapModel = new JFBConnectModelUserMap(); // The JFBConnect Usermap model
$fbId = $userMapModel->getFacebookUserId($joomlaId); // Get the FB Id of the currently logged in user
if ($fbId != null) // Check if the user has an FB mapping
return true;
}
return false; // If we made it here, the user is either a guest, or doesn't have a FB mappingJoin our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
