Hello,
Thanks for your response.
I was almost certain that the first time i logged in through JFBconnect that my current FB status displayed on my JS activity feed but I guess you are saying that this option does not exist yet. Im really looking forward to your next release and hope that this option will be included.
As for the message on FB that publishes that the fact that a user logged in to my site....
I added the code after line 11 but nothing different seems to happen. here is "default.php" code that is there now....
Please let me know what im missing.
<?php
/**
* @package JFBConnect
* @copyright (C) 2009 by Source Coast - All rights reserved
* @license <!-- m --><a class="postlink" href="
www.gnu.org/licenses/gpl-2.0.html">
www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
defined('_JEXEC') or die();
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
defined('_JEXEC') or die();
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
JFBConnectFacebookHelper::init();
$fbClient = JFBConnectFacebookHelper::getFbClient();
$rawFbUserId = JFBConnectFacebookHelper::$_OrigFbUser;
$fbUserProfile = JFBConnectFacebookHelper::_getUserName($rawFbUserId);
?>
<script type="text/javascript">
var jfbcRoot = '<?php echo JURI::root(); ?>';
var jfbcUsernameIsAvailable = '<?php echo JText::_('Username is available'); ?>';
var jfbcUsernameIsInUse = '<?php echo JText::_('Username is in use'); ?>';
var jfbcEmailIsAvailable = '<?php echo JText::_('Email is available'); ?>';
var jfbcEmailIsInUse = '<?php echo JText::_('Email is in use'); ?>';
</script>
<script type="text/javascript" src="<?php print JURI::root(); ?>components/com_jfbconnect/includes/jfbconnect.js"></script>
<!-- <!-- m --><a class="postlink" href="
wiki.developers.facebook.com/index.php/Fb:prompt-permission">
wiki.developers.facebook.com/ind ... permission -->
<!--
<fb:prompt-permission perms="status_update">Prompt Permission</fb:prompt-permission>
-->
<div>
<h1><?php echo JText::_('Welcome').' '.$fbUserProfile ?>!</h1>
<p><?php echo JText::_('Thanks for signing in');?></p>
<div>
<form onsubmit="return jfbcCheckPermission(this)" action="" method="post" name="form" style="float:left; width: 45%;">
<fieldset>
<legend><?php echo JText::_('Existing User Registration')?></legend>
<p><?php echo JText::_('Existing User Instructions') ?></p>
<div class="label"><label><?php echo JText::_('Username') ?> </label></div><input type="text" class="inputbox" name="username" value="" size="20" /><br/>
<div class="label"><label><?php echo JText::_('Password') ?> </label></div><input type="password" class="inputbox" name="password" value="" size="20" /><br/>
<input type="submit" class="button" value="Login" />
<input type="hidden" name="controller" value="loginregister" />
<input type="hidden" name="view" value="loginregister" />
<input type="hidden" name="option" value="com_jfbconnect" />
<input type="hidden" name="task" value="mapCurrentUser" />
<input type="hidden" name="fbid" value="<?php echo $rawFbUserId?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</fieldset>
</form>
<form onsubmit="return jfbcCheckPermission(this)" action="" method="post" name="adminForm" style="float:left; width: 45%;">
<fieldset>
<legend><?php echo JText::_('New User Registration') ?></legend>
<p><?php echo JText::_('New User Instructions') ?></p>
<div class="label"><label><?php echo JText::_('Username') ?></label></div><input type="text" class="inputbox" id="username" name="username" value="" size="20" onblur="jfbcCheckUsernameAvailable('usernameSuccess')" /><br/>
<div id="usernameSuccess"></div>
<div class="label"><label><?php echo JText::_('E-mail Address')?></label></div><input type="text" class="inputbox" id="email" name="email" value="" size="20" onblur="jfbcCheckEmailAvailable('emailSuccess')" /><br/>
<div id="emailSuccess"></div>
<div class="label"><label><?php echo JText::_('Password')?></label></div><input type="password" class="inputbox" name="password" value="" size="20" /><br/>
<div class="label"><label><?php echo JText::_('Verify Password') ?></label></div><input type="password" class="inputbox" name="password2" value="" size="20" /><br/>
<input type="submit" class="button" value="Register" />
<input type="hidden" name="controller" value="loginregister" />
<input type="hidden" name="option" value="com_jfbconnect" />
<input type="hidden" name="view" value="loginregister" />
<input type="hidden" name="task" value="createNewUser" />
<input type="hidden" name="fbid" value="<?php echo $rawFbUserId?>" />
<?php echo JHTML::_( 'form.token' ); ?>
</fieldset>
</form>
</div>
<div style="clear:both;"></div>
</div>