Login redirection not working as it should

Login redirection not working as it should

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.

buztan
Buzzy
useravatar
Offline
43 Posts
Website 
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login redirection not working as it should

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24055 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login redirection not working as it should

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."

buztan
Buzzy
useravatar
Offline
43 Posts
Website 
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login redirection not working as it should

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24055 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login redirection not working as it should

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.

buztan
Buzzy
useravatar
Offline
43 Posts
Website 
Active Subscriptions:

Administrator has disabled public posting. Please login or register in order to proceed.

Re: Login redirection not working as it should

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

If you use our extensions, please consider leaving a rating and review at the Joomla! Extension Directory:
JFBConnect | SCLogin

alzander
Alex
useravatar
Offline
24055 Posts
Support Specialist
Administrator has disabled public posting. Please login or register in order to proceed.
There are 0 guests also viewing this topic
There are 0 users also viewing this topic

Board Info

Board Stats
 
Total Topics:
11636
Total Polls:
0
Total Posts:
48886
Posts today:
7
User Info
 
Total Users:
47736
Newest User:
educarvalho2001
Members Online:
1
Guests Online:
620

Online: 
ferm
Social Stream
SourceCoast Joomla Social Extensions
Friday, 25 May 2018
JFBConnect 8.0 Coming Soon! Stay tuned.
Refer and Earn

Like our extensions? You're not alone! That's why they're used on tens of thousands of websites. Now you can earn 20% of any sale you refer to SourceCoast.com.

We provide excellent documentation, well laid out sales pages and great support. All you need to do is spread the word and we'll take care of the rest.

Learn About Our Affiliate Program