× Joomla Facebook Connect support forum

Topic-icon login button not logging out (Alex please check out)

Active Subscriptions:

None
I have a login form on the top of my site I use for my normal users. Once I add in the jfbconnect module I get 2 logout buttons. I know how to get rid of the buttons but my issue is if I wanted to leave both only on button really logs you out of both sites. The other (original) stops working. I assume this is because its not calling the java script?? How would one fix this.
The topic has been locked.
Active Subscriptions:

None
This is the response I was asked to post by Alex. The fix did not work and the regular logout button does not fully log you out.

Alex Posted the following

Try adding these lines, in this order, to the top of whatever module your modifying. I changed the javascript function call so that you can use this on the same page that you may be using the jfbclogin module, so update your onclick call to onclick="logout_button-click_custom()"

<?
require_once (JPATH_ROOT.DS.'components'.DS.'com_jfbconnect'.DS.'helpers'.DS.'facebookhelper.php');
JFBConnectFacebookHelper::init();
$fbClient = JFBConnectFacebookHelper::getFbClient();
if ($fbClient->user)
$logoutCall = "FB.Connect.logout(redirect_to_jfbconnect_logout)";
else
$logoutCall = "redirect_to_jfbconnect_logout()";
?>

<script type="text/javascript">
function logout_button_click_custom()
{
$logoutCall;
}
The topic has been locked.
Support Specialist
14 years 10 months ago #1355 by alzander
Can you PM me your website? I went to what I thought it would be, but there's a htaccess login/password required. Would just like to see the code implemented (we hadn't tested it before we sent it), but should be able to find something quickly to help you out.
The topic has been locked.
Active Subscriptions:

None
The site is <!-- m --><a class="postlink" href="anglerhangout.com">anglerhangout.com but I did figure it out. I didn't need to use your solution. I had a plugin conflict that I resolved. I appreciate the help. I can't wait to see this thing grow.

And I did have a password on it when I was fixing it.
The topic has been locked.
Support Specialist
14 years 10 months ago #1380 by alzander
Glad to hear you got it going!
The topic has been locked.
Active Subscriptions:

None
I have the same issue not being able to logout. The only way I can log out is to use the joomla logout button versus the JFB logout.

I have PM'd you my site info as well as login details not sure if you got them sourecoast?

On the Jomsocial board it was stated that the logout issue is actually because we are using the same class name for our Facebook library. Therefore the name conflicts.

What is the best solution to solve this?
The topic has been locked.
Support Specialist
14 years 10 months ago #1415 by alzander
Can you provide a post for that on the JomSocial board?

This is our number one 'bug' right now that we're investigating and it seems to be exposing itself in different ways on the affected sites. We should have something out this week to get around it.
The topic has been locked.
Active Subscriptions:

None
Yes I have posted this on jomsocial and also jomsocial developers have access to my site to see how jomsocial interacts with JFBconnects.
I also gave you access via PM to access my site as well.
The topic has been locked.
Support Specialist
14 years 10 months ago #1435 by alzander
Your site doesn't have JFBConnect installed. The JFBCLogin module is installed, but when logging into the back-end, the component isn't there. Did you uninstall it temporarily?
The topic has been locked.