× Joomla Facebook Connect support forum

Topic-icon Logging out from my site doesn't detach the FB user

Active Subscriptions:

None
Well, I try to describe the behavior:

In my application, the user logged in using facebook. There are some pages where he can submit comments or see comments of his/her freinds.
I use {JFBCComments href=http://www.boutique-annab.com width=550 num_posts=100}

Now, if I push logout, the user is disconnected, but he is still active on the comment area, and his friends' comments doesn't disappear.

I think this should be a bug.

You will find attacched:
1) a site page with cache cleared (both browser and joomla), before the user sigfned on
File Attachment:

2) a facebook login page for the user
File Attachment:

3) the page with the friend's comments
File Attachment:


As you can see, the login worked fine ( the user photo and name on the top right corner) and the list of comments on the page bottom.

Now I press Logout, and the application redirect me on the Home page as configured. There is no user logged in.

4) If I return to the detail page there is the error: the username and password are empty as the application should be ready to accept a new user, but on bottom, there are still the message for the user logged out. These info should not be present there.
Please, note that the access button for facebook is not the same as in the first attachment.

File Attachment:


Thank you

Paolo
The topic has been locked.
Support Specialist
11 years 6 months ago #27277 by alzander
Paolo,
The URLs for the 2 last pictures you made have different URLs. Do you know why the URLs are changing when the user is logged in vs not logged in? Either way, can you tell me how you are inserting the Comment box onto the page? If you're just using the {JFBCComments} tag, that's likely the issue as it will take the current URL. Since your URL is changing, that's a problem. Changing URLs is a common issue with Virtuemart and also a combination of (what looks like) a language extension on your site.

I'd recommend using the url parameter of the JFBComments box to force the URL to always be the same for the product page, like:
{JFBCComments url=http://yoursite.com/index.php?option=com_virtuemart&productid=123}

There's more to it than just that, and you'll need to use some PHP to generate the proper URL, but that should fix the issue so that all the comments tie to the same URL instead of different ones as they currently are.

Hope that helps,
Alex
The topic has been locked.