× Joomla Facebook Connect support forum

Topic-icon Facebook Login Redirect

Active Subscriptions:

None
14 years 4 months ago #18523 by fb_100001852085900
Hi There,

I have just recently updated the component to the latest version. I updated the component for the use of returning a user once they have logged in to a relevant page on my site by adding '&return=' and then putting a base64 encoded url of where i would like it to redirect to.

This works great when using the normal fields in the sclogin module and when you register your facebook account to the site. The issue im having is when someone has already registered their facebook account to my site and then they click "Login with Facebook" button it logs the user in and then redirects them to my chosen menu item in the configuration for the component but instead it ignores the return variable in the url.

How i would like it to function is to redirect to the link which is set in the return variable "if it exists" otherwise it will redirect to my chosen menu item which has been selected in the configuration. It does currently work in this way when using the standard login form or when i register my facebook account, it just does not seem to work when i login with facebook with an existing account.

Hope that makes sense.
The topic has been locked.
Support Specialist
14 years 4 months ago #18525 by alzander
Replied by alzander on topic Facebook Login Redirect
Jon,
The standard login form is a bit different. While it's good it works, that's a much simpler case.

As for what you're looking for, can you tell me what you have set for the New User Redirection setting in JFBConnect? I'm assuming you have it disabled (to leave the user on the same page) while you have a specific menu item set for the returning user redirection. That could explain why one works how you want (we either use the return variable or leave them on the current page) and one doesn't (we always use the menu item redirect).

If that's the case, there's probably an easy line or so of code we could change, but it isn't something we'd likely add to JFBConnect permanently. Just let us know.

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

None
14 years 4 months ago #18528 by fb_100001852085900
Hi Alex,

I have attached print screen of the configuration page for the login/ Logout tab. As you will see i have set it up so new users and return users will be redirected to the "myEBC" menu item. Let me know if you need any more information.

File Attachment:


Thanks
The topic has been locked.
Support Specialist
14 years 4 months ago #18529 by alzander
Replied by alzander on topic Facebook Login Redirect
That should be enough. We'll have to test more to understand what's actually happening. It seems like something's not working right, just not sure what yet.

This may take a little while to get a response to you (a day or so), but we'll get an answer to you when we can.

Thanks for the report,
Alex
The topic has been locked.