× Joomla Facebook Connect support forum

Topic-icon FB Status not showing up when users login with JFBconnect

Active Subscriptions:

None
Hello,

My jfbconnect_j (v2.5.3) was installed and set up correctly .

With a little help ;) Users are able to login using FB and even get their FB profile photo and info to show up in joomla and jomsocial.

However i am still not seeing 2 things.

1) User facebook status on my website's jomsocial activity feed, once logged in.

2) Facebook message saying that that the user logged in.

Ive been looking at the backend joomla settings again and again seeing if im missing something but it appears all of the options have been set correctly.

I'd be very excited to see these options working on my site and would really appreciate some help in making this work.

Thanks in advance, i think JFBConnect is brilliant.

(if you need me to resent super-admin login info, just let me know)
The topic has been locked.
Support Specialist
Sorry for the (lengthy) delay in responding. It's not normal, and not right.

1) Currently, the user's Facebook status is not imported into the JomSocial activity feed. This isn't a bug with your setup, it just isn't how JFBConnect currently works. We're just starting on some new features, and tighter integration is one of them. I don't have a timeline for the release though.

2) This one we can help with. Can you try the following:
In the component/com_jfbconnect/views/loginregister/tmpl/default.php file, at line 11 right under the "include_once" line, add:

defined('_JEXEC') or die();
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
JFBConnectFacebookHelper::init();

Depending on how your site is configured, during the registration process, the user may not be asked for permission to post to their wall. The above line ensures that they are (by loading the proper FB Javascript library). After they are asked, then (if they've consented), you should see updates that they've logged in.

Let us know how this goes.
The topic has been locked.
Active Subscriptions:

None
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>
The topic has been locked.