× Joomla Facebook Connect support forum

Topic-icon logout not working with redirect module

Active Subscriptions:

None
15 years 1 month ago #580 by jdundon
Hi, thanks again for the help.

I have two homepages, one for guests and one that registered users are directed to using ninja redirect. i have links that show up when you are registered (one in hellome and one in a custom html module) to logout using the normal joomla logout url: index.php?option=com_user&task=logout&return=Lw

However, when you click one of these links, it immediately logs you back in and redirects back to the registered user home page, giving you the standard "you have been successfully logged back in using your facebook credentials" message. Using the logout button in the jfblogin module does work though, giving the popup box saying that you are logging out of facebook too, and redirecting you back to the guest's home page. When users log in using their normal joomla username and password, my logout links work just fine as well.

So my question is this: Is there any way that you can call the function to logout of both facebook and joomla with html in other modules? The only other option would be to remove all of the logout links and use only the one if the facebook connect module.

Thanks!
The topic has been locked.
Support Specialist
15 years 1 month ago #591 by alzander
There isn't a way to do this simply with HTML. Facebook highly recommends that we log you out of BOTH Facebook and the site your logging out from if you log out of any of their affiliate sites.

Our login module is completely templateable, or you could add the javascript call to FB into your module of choice to help fix the problem. If you have other solutions (or need help with this one), just let us know.
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #593 by jdundon
Ok, but i have encountered a problem with having the two modules published at the same time, it white-screens my site. They only way i managed to get it to allow me to have the module assigned to two different positions was to use metamod to hide one or the other.

I am pretty good with HTML and CSS, but not javascript. Could you provide a sample javascript call i would put into a module? Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #594 by jdundon
BTW, you might want to add a note to your jomsocial users, because the hellome module has its own logout link too... Other will encounter the same problem as myself.
The topic has been locked.
Support Specialist
15 years 1 month ago #598 by alzander
What is the hellome module? Link? If it's that common, we may try to come up with a quick post to make them work easy together. Just not familiar with it though.

Thanks!
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #601 by jdundon
Hellome is a module that comes with jomsocial. people usually set it to show up when you log in. It has a setting to show your avatar and karma points, and also includes links to your profile, log out, inbox, friend requests, etc. I have it set up on my site <!-- w --><a class="postlink" href="www.rugbyUNITED.com">www.rugbyUNITED.com. Log in with facebook connect and a module called "my quick links" will show up above it. Try clicking the logout link and you will see what happens.

How about that javascript call? :D

Thanks!
The topic has been locked.