<?php $jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
if ($jfbcLibrary->userIsConnected())
echo 'Your text or HTML here for when a user is connected";
else
echo "Your text or HTML here for when a user is NOT connected";
?><?php $jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
if ($jfbcLibrary->userIsConnected()):?>
<h3>You are connected with Facebook</h3>
<?php else:?>
<h3>1: Connect with Facebook (optional):<a href="javascript:void(0)" onclick="jfbc.login.login_custom();"><img src="button.png" /></a> for fast and secure sign up.</h3>
<h3>2: Select an option</h3>
<?php endif;?><?php $jfbcLibrary = JFBConnectFacebookLibrary::getInstance();
$fields = array('first_name', 'last_name');
$profile = $getUserProfile($jfbcLibrary->getFbUserId(), $fields);
echo $profile['first_name']." ".$profile['last_name'];Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.
