× Joomla Facebook Connect support forum

Topic-icon Feature Request

Active Subscriptions:

None
15 years 1 month ago #479 by ceshelman
Feature Request was created by ceshelman
It would be really nice if the JFBConnect login module worked like the CB login module in that rather than always redirecting to a specific pace it redirected back to the page it was called from. If I am browsing in the forums and leave the page idle long enough to time out when I come back and resume browsing the login module is kind enough to log me back in but it redirects me away from where I was browsing back to the page spec'd in the module... most annoying.

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

None
15 years 1 month ago #579 by jdundon
Replied by jdundon on topic Feature Request
I agree, there should be an option for no redirect. Having to go back and find the page you were at when you decided to login is a huge pain.
The topic has been locked.
Support Specialist
15 years 1 month ago #588 by alzander
Replied by alzander on topic Feature Request
Don't think this should be too difficult. We'll see what we can do. With the 2.0.1 release out, which was mainly bug fixes, we're now implementing new features for the next release. Can't guarantee it will be in there, but we agree with this request as well (which is good for you).
The topic has been locked.
Active Subscriptions:

None
15 years 1 month ago #602 by jdundon
Replied by jdundon on topic Feature Request
I have a related issue that I am starting to notice, which is in my mind a huge problem:

Say a user creates an account on my site using facebook connect, plays around, but never logs out (pretty common on your own computer, where you don't really ever want to log out). They also don't ever log out on facebook either. The next day, i send them a newsletter with links to my recent articles. The first link they click takes them to the article but then immediately redirects them to the home page, telling them that they were successfully logged back in using their facebook credentials. They never see the article!

This setup effectively makes any external links to my site to any page other than the homepage pointless for users who registered with facebook connect. I have not tried it out, but I would imagine that similar issues exist for message notifications, friend requests, etc. Any ideas?

Thanks!
The topic has been locked.
Support Specialist
15 years 3 weeks ago #655 by alzander
Replied by alzander on topic Feature Request
There's a new JFBClogin module available for download which now provides the option to remain on the current page when logging in. This should address both of your issues. Make sure after you install you go in and configure the parameters and hit apply or save at least once.

The new version is 2.0.3, and we haven't set it as the most current yet, so if you upgrade, it will tell you your versions are out of date (temporarily). Don't worry about that.

There's 2 new options for both Joomla and Facebook login:
Redirect on Facebook(Joomla) Login - When set to Yes, the login module will operate as before and redirect the user to whichever menu item is selected. When set to No, after logging in, they will remain on the same page.

Let me know if this works how you expect. We'd love to get any feedback we can, and then we'll also set it as the most current version so others know as well. Finally, the only files that changed in this release are the helper.php and mod_jfbclogin.xml files, so if you've changes your template, just copy these files over and you shouldn't have to do any new modifications.
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #667 by jdundon
Replied by jdundon on topic Feature Request
Thanks for the help!

I swapped out the helper and xml into my module, and it seems that I am having the same issue still.

Whenever you actually click "connect with facebook" , you are not redirected (perfect).

However, whenever you are logged into facebook, even if you closed the FF tab that facebook was in without logging out, then click any link to a page on my site (for example from a newsletter), you are still redirected to the home page! This basically makes my newsletter worthless :(

Try it yourself!

First, make sure you are logged into facebook to an account already connected to my site (sourcecoast, I think you made one already). Then, click this link, for example:

[url:3kfx02r2]http://www.rugbyunited.com/index.php?option=com_jreviews&Itemid=130[/url:3kfx02r2]

You will be redirected to the homepage and told that you were logged back in with your facebook credentials. In the world of never logging off on your own computer (why should you?) this is a big issue.

This also happens whenever your session expires on my site. Say you go to my site, navigate around for a bit, then go eat dinner. When you come back, you click any link (except "home" for illustration), and you are redirected to the home page, saying that you were logged back in with your facebook credentials.

Any ideas? Thanks sourcecoast!
The topic has been locked.
Support Specialist
15 years 3 weeks ago #678 by alzander
Replied by alzander on topic Feature Request
Ah, I think we may have missed that usage case (I know you explained it above, but we didn't test that login scenerio). Still agree this is something that we should fix, so we'll come up with something.
The topic has been locked.
Active Subscriptions:

None
15 years 3 weeks ago #683 by jdundon
Replied by jdundon on topic Feature Request
Haha well you never can think of everything, that's why you have us! Thanks for looking into it. I think I notice it most because I am on the site constantly, but a couple users did notice as well. Thanks again...
The topic has been locked.
Active Subscriptions:

None
13 years 9 months ago #4010 by fb_1270317608
Replied by fb_1270317608 on topic Feature Request
This has probably come up before, I just cant to seem to find an answer in the forums.

www.feutz.com

I have some articles that are for registered users only. Now I joomla setup to post direct links to my facebook wall whenever I write an article. Now if the user is Logged into facebook but not my site, then on the link on facebook wall, they are directed to my site. They then are prompted with the core/default joomla login form in the content section.

If they use use the module Facebook connect button to the left.. it redirects them to the home page not the direct link to the article. Not quite sure how to correct this, so that when they click on the direct article link from facebook that it allows them to click/login with facebook then sends them to the article the came to see.

Please advise,
Thanks,
Jon
j
The topic has been locked.
Support Specialist
13 years 9 months ago #4020 by alzander
Replied by alzander on topic Feature Request
First off, when posting in forums, please try to post to related topics or at least post new if the topic is more than a year old. While your post is somewhat related, it's confusing to have such old posts rise to the top when the original issue relates to a very outdated version of JFBConnect.

Anyways, yes, we don't respect the login redirects in the case your speaking of. If you're interested in testing something, the code below should allow an override in the case that there is a forced URL redirect from Joomla, it should be used over any settings in the module itself.

In the /modules/mod_jfbclogin/helper.php, ~26, add the 2 lines in at the bottom:
function getLoginRedirect($params, $loginType)
{
	if (JRequest::getString('return'))
		return JRequest::getString('return');

Please let us know how this goes, and we'll likely add this as an option in the 3.0 release.
The topic has been locked.