× Joomla Facebook Connect support forum

Topic-icon JFBConnect invite logs users out after you hit send.

Active Subscriptions:

None
After hitting submit on the invite module it will log the user out, however it doesn't show them as being logged out from the admin panel... thoughts?

Also, It doesn't recognize which of my friends are already members.
This is my site!


Thanks as always.
The topic has been locked.
Support Specialist
15 years 4 months ago #7301 by alzander
Currently, the invite module shows all possible friends. We don't exclude friends that are already on the site. We originally had that feature at one point, but due to Facebook limitations on seeing friends and some other technical issues, it had to be removed. We have a task to re-investigate it as they've changed a bit of the abilities we can do behind the scenes in the last few months.

As for logging the user out, I'm confused. The invite module shouldn't have any effect on the user's logged in status (in or out). Did you mean something else?
The topic has been locked.
Active Subscriptions:

None
What I mean is....

I go to My Site , i log in through JFBConnect. I scroll down to the bottom of any page to find the JFBCInvote module and I select a friend to send an invite too and after I click submit the option to send invites through email pops up I click skip that scree disappears and when it pops back up I am at my websites home page and logged out.

Now if i go to my admin side ( the back end) the user is shown as being logged in. and to make it even more convoluted if the user goes to another link within my site and then returns to the home page they are logged back in.

Thoughts?
The topic has been locked.
Active Subscriptions:

None
The topic has been locked.
Support Specialist
15 years 4 months ago #7427 by alzander
Scott,
Sorry for the delay. There were some shenanigans with Facebook Connect this last week, and it seems like this thread fell through the cracks.

Regarding the invites on the login/register page, I wouldn't recommend it. Once a user registers (or logs in) on that page, they'll be redirected to a new one, and won't be able to invite their friends. On the flip side of the coin, if they invite their friends from that page, as you've noticed, it will redirect them away from registering or connecting their FB account to their existing user.

There's not a great way around this as each 'form' on that page will redirect the user somewhere else preventing them from filling out the other one.

What I would recommend if you want users to invite their friends on first registration is:
1) Create a new content article "Welcome User" - Put a nice welcome message in and thank them for registering.. tell them to invite their friends, etc..
2) Create a menu item that links to this article. It should likely be in a menu that isn't displayed anywhere (you mainly want the pretty link
3) Assign the JFBCInvite module to this menu item in an above the content or below the content position, depending on your template.
4) Setup JFBConnect to do a New User Redirection to this menu.

This way, when users click the Login With Facebook link, they'll have to go through the registration process. Once done, they'll get a nice Welcome Message and an easy (and not confusing) way to invite their friends.

Finally, as for the last part of navigating away from the page and being logged in, I just tried with a Facebook User that's never created an account on the site, and I wasn't auto logged in. Is it possible that user already has a Joomla account? Is it possible they are already logged in through Joomla? If you can help us recreate it, we'll definitely help you figure out the issue, because that's not the proper behavior.

Thanks for your patience, and hope this helps!
The topic has been locked.
Active Subscriptions:

None

alzander wrote: Scott,
...Finally, as for the last part of navigating away from the page and being logged in, I just tried with a Facebook User that's never created an account on the site, and I wasn't auto logged in. Is it possible that user already has a Joomla account? Is it possible they are already logged in through Joomla? If you can help us recreate it, we'll definitely help you figure out the issue, because that's not the proper behavior.

Thanks for your patience, and hope this helps!


Auto logged in? I have that turned off. My problem is when you scroll down to the bottom of any page on my site when you click on your facebook friends to send them an invitation to join the site, after you click send invites, then the e-mail option pops up, after i hit skip i am logged out and sent to the home page.

However If I look from the admin side the user is not actually logged out it only appears that way to the user. If the user loggs in again it will show them as being logged in twice if i look in the admin side.
The topic has been locked.
Support Specialist
15 years 4 months ago #7431 by alzander
Ahh.. Very sorry for the misunderstanding. The problem actually doesn't seem to be the Invite module itself. If you go to your site www.gettingourcountryback.org/
and log in, you'll be redirected to:
gettingourcountryback.org/

The lack of 'www' is actually a different site in the web's and Facebook's eyes. Regardless of whether you use the Invite module, if you go to the www version of your site again, you'll not be logged in. The Invite module is just setup to send the user to the www version and you're noticing the issue then.

This issue is even occurring if I log in with my bog-Joomla account, and don't use JFBConnect/Facebook at all. I'd look into your server configuration, and if possible, setup an htaccess rule to redirect all requests to either the www or non-www version (whichever you prefer). That, or determine why some of your links are going to www and non-www. Generally, Joomla takes care of this for you if you use the default menu options and don't hardcode URLs. I'm not sure how your site is configured though.

Hope this helps get you started it determining the cause of the problem, and let us know if there's anything more we can help with.
The topic has been locked.
Support Specialist
15 years 4 months ago #7432 by alzander
Oh yes, if you're using sh404 or some other enhanced SEF tools for Joomla, they very often have the ability to force www (or non-www). Just a thought in case you're using one.
The topic has been locked.