Topic-icon Cb user created only after logging in (after registration)

Active Subscriptions:

None
Hello,

We bought for the new version of our site we're working on the latest version of JFCB. Installed it together with SCLogin and configured things on the backend to work with Community Builder and not with Joomla user management itself.

Nevertheless, something strange is happening and I am not able to figure it out.

1. Displaying the FB login button per the SC Login on our home page.
2. User clicks on it, JFBC seems to pull the date from Facebook correctly, as it then redirects to the registration/connect to an existing account form, prepopulating the fields. Note that the username field is correctly prepopulated with firlas (as chosen on backend). Other fields work, too.
3. Then, when filling some other mandatory fields on this registration page and clicking sign-up, there is a message that seems to indicate success, but the user isn't automatically logged in after signup (would be nice if this was possible).
4. Checking from the Joomla admin side, at this stage, there is no Community Builder user created yet. However, there is now a user created in the Joomla user management. The username though isn't firlas but firstname.lastname.
5. Going back to the front-end and clicking the FB login button displayed per the SC Login on our home page, then it logs the user in without any further questions.
6. Going to the Joomla admin side, at this stage, there now also exists the user in the Community Builder user management. But also with 'wrong' username of firstname.lastname instead of firlas as configured.

So, we're experiencing 2 problems here:
a) this 'two-step' creation process of users when signing up w/ Facebook via SCLogin: first a user is created in Joomla and only then in Community Builder (v2.0.5 btw)
b) the wrong username of firstname.lastname instead of firlas

I would much appreciate any help or pointers to help us solves this.

Thank you,
Oliver
The topic has been locked.
Support Specialist
9 years 2 months ago #51256 by mel
That's not an issue we've heard of ever before. I'm not sure why the username would be created with firstname.lastname at all, unless CB (or another extension) is doing something during the registration process to alter that.

Can you please try to disable the Social Profiles - CB plugin and see if the Joomla account username is correct. No CB user will be created in this case, which is a problem, but we need to start somewhere.

Beyond that, you've been a long-time user. Was this all working before? When did it start failing: was it just when you upgraded to the latest JFBConnect, or did you upgrade a bunch of things all at once (like CB and/or Joomla itself)? Any information you can provide about what configurations used to work and what happened between then and now will really help understand what may have gone wrong.

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

None
Hi Melissa,

Yes, we're a long term subscriber to your wonderful JFBConnect. Our production site is based on Joomla 1.5 with JFBC 4.x (can't remember right now; but it works fine). We're now working on a new version of our site with Joomla 3.3, CB 2.0.5 and the latest JFBC6. We're essentially rebuilding and (trying to) configure everything on the new system as on our old one. So, it's not that it has just stopped working. We haven't gotten it to work yet on our new version.

Having just spent 5h configuring all variations of things I can think of together with a friend, we got some new insights but still far away from getting to the bottom of things, it feels.

What I found out is that the username is set to firstname.lastname (instead of firlas) is indeed happening by CB Configuration -> User Profile tab -> Username Fallback seems to kick-in. This is set to 'Name'. I changed it to some other fields and then the username gets indeed saved after the JFBConnection sign-up page as that fallback, even though the username on the signup form was correctly prepopulated with firlas. I also tried manually changing the prepopulated firlas to something else, but when saving, it seems the CB Username Fallback seems to kick in always.

My friend things he remembers something like this from years ago for our current production site (w/ JFBC 4.x) and that back then we were advised to make some change to the CB field username which then solved the thing. But we don't remember for sure and manually having compared the two username fields from our production and new site, they seem identical (0 - 15 chars; permissable pattern matching is same, etc.)

We also set in JFBConnect -> Configuration - Enable Automatic Registration to Yes, then it indeed takes the firlas name and the CB Username Fallback does not seem to kick in. However, in that case, we don't get to JFBC sign-up page, where the user could fill other mandatory CB fields.

Last but not least, we have also disabled the Social Profiles - CB plugin like you asked, and in that case, sign-up page shows the correctly pulled firlas and on signing up then creates the Joomla user (but not the CB user, of course).


Unfortunately, we have not been able to gain any more insights into the 2nd issues why the user isn't auto-logged in after the JFBConnect signup page (even with wrong username per the CB Username Fallback kicking in) but instead requires a 2nd time clicking the Facebook signin button.

I would much appreciate your advise.

Thank you so much,
Oliver
The topic has been locked.
Support Specialist
I just tested with CB v2.0.4, which is slightly older than yours, but I don't think that's the difference. When I register, the username fallback name is *not* used and my account is created properly by JFBConnect using the form-based registration.

Both of your issues could be caused by an issue by CB itself where it will not let a user be saved by JFBConnect if there are any fields marked as "Required" that aren't being saved too. The next thing I'd do is go into the CB profile manager and make every field *not* required. Once all of them are not required, try registering again and see if that works right. If so, you can try to re-require a few fields at a time to determine what field specifically may be causing issues and we can go from there.

It definitely seems like this is not a wide-spread issue (since no one else has reported it), but we'll just need to narrow down what's different about your configuration.

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

None
Hi Alex,

Thanks for your immediate response. Just before I was going to go through the steps you suggested with making all CB Fields non-mandatory, I tried to change in CB -> Configuration -> User Profile tab the field 'Username Edit' to 'Yes'. That solved both problems, the username fallback issue and the user not being logged in automatically after registration.

Thank you for your help. I have a few other questions now but will make separate ticket.

Oliver
The topic has been locked.