Topic-icon Facebook Login stopped working

Active Subscriptions:

None
14 years 6 months ago #16556 by akashmitra
Hi Alzander,

Bad bad day for me - I guess I messed up something. Again.

Problem Description:
Once a user tries to sign-up through Facebook (for the first time) - the user is logged in successfully. However, when the user tries to access his Community Builder profile page, he gets following message:
This user has not yet confirmed his email address and account!
This user has not yet been approved by a moderator!

This happens even though
1) Skip Joomla User Activation is set to Yes and
2) Skip CB Activation is set to Yes

On further investigation, we found that when the user sign-up through Facebook, some of his profile information (e.g. DOB, Gender, About Me etc.) are not being populated in Community Builder from Facebook even though Community Builder Facebook field mapping is properly configured. Yet these information (DOB / Gender) are mandatory fields in CB. So CB shows the user as enabled=yes, confirmed=no, approved=no.

Site Name:
www.dwbiconcepts.com

Site Configuration:
Joomla 1.7 / Community Builder 1.7
Login Module used: mod_sclogin
Authentication plugin ordering:
1. Joomla
2. JFBCConnect Facebook
3. JLinked

Site admin password is sent to you in PM

Please help.

Regards,
Akash
The topic has been locked.
Support Specialist
14 years 6 months ago #16558 by alzander
Akash,
Your problem is a known one. Basically, if you have required fields in CB, every one of them must be filled out during the registration process, or else the CB will reject the user when we try to create them. To fix this, there are a few options:
* Ensure that all fields marked as "Required" in Community Builder are being mapped to a Facebook field in the Profiles configuration area of JFBConnect.
* If using the user creation mode of Full Joomla User, enable the "Show non-mapped required fields" setting in the Community Builder profile plugin. This will allow the user to fill in this information during registration.
* If using the user creation mode of Facebook User Only, mark any fields that are not being mapped to as 'not-required' in Community Builder.

Hope that helps, but it's vital that any fields being marked as required are somehow being filled out (either from their Facebook Profile automatically or by showing the extra required fields to the user during the registration process).

Good luck,
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16572 by akashmitra
Hi Alzander,

Thanks for your reply. Here goes my reply:

* Ensure that all fields marked as "Required" in Community Builder are being mapped to a Facebook field...
My answer: I have mapped all the required fields in CB with their respective fields in Facebook

* If using the user creation mode of Full Joomla User ....
My answer: Our User creation mode is "Facebook User only"

* If using the user creation mode of Facebook User Only, mark any field that are not being mapped....
My answer: I have marked all the fileds as "required" and mapped them properly with Facebook fields

In fact, when we ran the same test earlier, it worked perfectly fine. But it's not working now suddenly. What are the other things that I should check now?

Regards,
Akash
The topic has been locked.
Support Specialist
14 years 6 months ago #16573 by alzander
Akash,
We figured out the issues, and you should be good to go now. Not sure why your site is behaving differently than others, but the email address field was getting overwritten to blank when we tried to save the user. That obviously is not liked by CB, so it was rejecting the user. It was an easy fix to prevent the overwrite, and we'll have to see if that's something we should be including in the profile plugin in the future.

Did you change anything about the email field within CB? It may help us narrow down what happened.

Additionally, the "Sex" field was marked as required, and that value can't currently be imported by JFBConnect, so I had to mark it as not required.

Hope that gets you going!
Alex
The topic has been locked.
Active Subscriptions:

None
14 years 6 months ago #16577 by akashmitra
You are a legend! I don't think I did any change in the CB email field (knowingly) apart from styling (CSS override) of the email field and switching on the AJAX checker. But anyway, thanks to your effort - it's all back to normal now. APART from the ONE WEIRD thing.

That is - the DOB field. Any body who signup through Facebook, his or her date of birth is displayed as 1 day less than his or her actual date of birth.
Meaning - let's say my DOB is 15th November, but if I signup through Facebook, CB Profile shows my date of birth as 14th November. My colleague's DOB is 31st December, but his DOB is displayed as 30th December in CB profile after he logged in through Facebook.

I know it's weird but that's how it is. Is there something to do with locale setting or things like that? How do you fix this?
The topic has been locked.