Topic-icon Login redirection not working as it should

Active Subscriptions:

None
10 years 7 months ago #36655 by buztan
I have JFBConnect and SCLogin on my website (latest versions downloaded yesterday)

When a user logs in by clicking the Facebook button they are redirected to the specified page. If they log in just entering a name and password the login works ok but they are not redirected (they stay on the same page)

Another quirk is that when they login with name/password, it does fire a login event in Community builder, however when they login with the Facebook button, no login event is generated.

Not sure if this is one bug (inteconnected) or two separate ones, but anyway it means I can't use this product on my website yet.
The topic has been locked.
Support Specialist
10 years 7 months ago #36673 by alzander
Can you explain the login event in CB that's being triggered? Is that triggered from a User plugin or somewhere else? What does it do?

JFBConnect uses the standard Joomla login system for Facebook logins. I'm not sure what CB is doing, but if they're expecting all logins to go through their system and not building on top of Joomla's login system, that could be a problem.

As for the redirect itself, I'll let you know what I find in this thread that you're also a part of.

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

None
10 years 7 months ago #36753 by buztan
Community Builder has an Activity Stream you can add (CB Activity) and also has an ability to create actions from various events (CB Autoactions) and it is these that do not recognise the login by Facebook/Google+ but do recognise if you log in by username / password.

When I asked Joomlapolis if it was a CB issue that using JFBConnect to log in did not fire the event, their response was that I should not use JFBConnect as "...because the one you are using is not designed for CB. It's not registering users with CB API or logging in users with CB API. So any users registering through it will go out of sync and will not fire any of CBs login/registration triggers."
The topic has been locked.
Support Specialist
10 years 7 months ago #36862 by alzander
Buzzy,
Sorry for the delay on this. We are investigating further. Our CB integration definitely registers the user using the CB API to save their profile values. For the logging in portion, there isn't really an API to log the user into CB, but there are some things that we could be doing differently to notify CB of the new user. Frankly, it seems that this stuff should be done automatically by CB using a standard Joomla plugin, but I digress.

Either way, we did find new API documentation that we had never seen before from them and will be looking to implement it in the next major release, v5.2, due out in October. It seems straightforward, but I can't guarantee it.

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

None
10 years 6 months ago #36965 by buztan
Thanks - I have found a work around in that as CB does detect the login when not using FB/Google I can use the CB autoactions plugin to redirect the user. Not a particularly elegant solution but at least it works for now! Good luck with the 'new' CB API info. My experience has been that they are not always the best at documenting things but are trying to sort that, perhaps why more info is starting to come out from them.
The topic has been locked.
Support Specialist
10 years 6 months ago #37001 by alzander
Buzzy,
I'm glad you have a solution that works for you. I was excited to see that they have some documentation on their recommended API. I can't fault them for not having perfect documentation on all areas because I know how tough it is. Now that we've found some though, we'll definitely be going through it to follow things as best we can. There will definitely be updates in this area in the v5.2 release, due out late October.

As always, should you need anything else though, just let us know.

Thanks,
Alex
The topic has been locked.