Topic-icon Logout Of Joomla & FB not working

Active Subscriptions:

None
12 years 2 months ago #42022 by reggio-metals
Hi

I asked this question before i know but now i think there is something wrong after the update ? i mean i want my users to login to my site and use FB button and when they do that and login they go and press logout and they still can post as the fb user as if they didnt logout from facebook even tho the option Logout Of Joomla Only is set to NO .

is there something im doing wrong ?
The topic has been locked.
Support Specialist
12 years 2 months ago #42040 by alzander
I'm a little confused as to what you're looking for. What kind of posts are you looking to make on behalf of the user? Is the user making this posts or performing some action on your page, or are you looking to post to their Timeline when they aren't logged into your site?

Once I understand a little more about what you're trying to do, I can let you know if what you're seeing is the correct behavior or not.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42048 by reggio-metals
Ok i understand. I meant to say that simply the users are logging out of the site completely but their fb account still logged in. Even tho i set the option right.

For example i logged out from my site then i went to read an article and i see site there the favebook comments and i see my profile in fb is there and i can write a comment or like. Knowing that the portion of logout of joomla only is set to no
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42078 by reggio-metals
anything new about this problem ?
The topic has been locked.
Support Specialist
12 years 2 months ago #42084 by alzander
Sorry for the delay. I just had a chance to look at your page. The reason the logout isn't working as you expect is because you are not using the SCLogin module for the logout. You'd need to use SCLogin for logging out or update the module you're using to call our jfbc.login.logout(); javascript call which will log the user out of both properly.

I hope that helps answer your question, but should you need anything else, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42086 by reggio-metals
Unfortunately i have a bridge for php and i cant use sclogin ,but i can modify the rokbridge login module to have the same logout button . can you tell me the statement i need to replace the other module login with ? a little guide please :D
The topic has been locked.
Support Specialist
12 years 2 months ago #42087 by alzander
Can you try editing /components/com_jfbconnect/includes/jfbconnect.js Around line 1045, you'll see:
jfbcJQuery(".sclogout-button form").submit(function (e)
Update that to:
jfbcJQuery("form#login-form").submit(function (e)
That should target the login form your using and attach our Javascript to it. Test, and let me know how that goes!

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42089 by reggio-metals
Yes you are a lifesaver !! and now the module is working great :)

one more question , can i have the sclogin Logout only button or external url or anything like to use in the menu as an option ? coz my login module is hidden on mobile and tablets version .
The topic has been locked.
Support Specialist
12 years 2 months ago #42091 by alzander
Glad to hear that worked.

I'm not sure what you mean by your second question. Can you explain that a bit more?

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
12 years 2 months ago #42092 by reggio-metals
yes sure , the sclogin and rokbridge are modules , u just set them to be shown in a position , but in mobile and taptop version of the site i hide them coz it will take a big space of the screen and i set instead for the user a place in the menu to click Login , or Logout . and i want to know what can i do to put the sclogout in my menu
The topic has been locked.