By Sunny on Saturday, 29 November 2014
Posted in Technical Issues
Replies 15
Likes 0
Views 1.3K
Votes 0
I've set up register with Facebook, and i've linked a profile type to be used during Facebook registration.The site now allows to register using Facebook id.

But the issue is that there are custom fields (Mandatory) in the profile type, which are not shown if a users uses registers via Facebook.

The current flow of Facebook registration is:
Click on Login with Facebook takes to .../community/registration/oauth/facebook, which asks to click on "Create my account" button
Which takes to "Select Profile type" (Although i've defined a profile type in registrations settings)
When clicking on profile type, it takes me to "set password, import avatar & cover" and complete registration.

There is no option for the facebook user to fill in the mandatory custom fields which are defined in the profile type.

I might be missing on some settings, can you please guide me on this.

regards
another thing i noticed is that after a user registers using "facebook" their profile page (Near Cover) gives an error:
Warning: Invalid argument supplied for foreach() in ../media/com_easysocial/apps/fields/user/multilist/multilist.php on line 33 


This happens possibly because while registering by facebook the visitor was not asked to fill some mandatory fields like "Birthdate", "some custom interests" etc.., and one of which has been echoed in the profile header in template override.

regards
·
Saturday, 29 November 2014 20:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

I am really sorry for the delay of this reply as it is a weekend for us here. If you want to ask more questions when a user signs up with Facebook, you can configure it as shown on the screen here, http://screen.stackideas.com/2014-11-30_0109.png .

However, I reckon that you keep it as "Simplified" as you don't really want to ask too many questions for users registering with Facebook. After all, the whole idea is to have a single sign on and you want them to register as quickly as possible
·
Sunday, 30 November 2014 01:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,

Yes we really do want to have quick registration, with just two extra fields during registration (check buttons & multilist), which will define the areas of interest for the user. ( the rest he can fill in using complete your profile links)

I allready have the setting set at Normal, but still after selecting the profile type, it does not show the custom fields.
It only gives an option for
"Username", "Email", "Desired password(Optional)", "Import profile avatar & cover" and "synchronize your stream with Facebook"

No other fields are asked to be filled, and if we click on "complete registration" button, it takes to Registration Completed page.

regards
·
Monday, 01 December 2014 14:01
·
0 Likes
·
0 Votes
·
0 Comments
·
The issue can be replicated by : clicking on "Sign in with facebook" button in easysocial Oauth or easysocial login module.

Only the below options are shown, no admin defined mandatory custom fields are shown.

Username
Email
Desired password(Optional)
Import profile avatar & cover
Synchronize your stream with Facebook
·
Monday, 01 December 2014 17:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

We are sorry, currently you can't add an additional custom field to facebook registration because the main point of using facebook registration is to have a faster registration process. Once the registration has complete, if the user edit their profile, they will need to enter data for those required custom fields.
·
Monday, 01 December 2014 17:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik, i understand your point and the work around (user edits his profile fields)

But as few of the fields are mandatory and required, its really important. Otherwise the profile would be incomplete.

If you can point out the file used, maybe some core hack can be introduced, to mandatory fill 2-3 fields during facebook registration.

regards
·
Monday, 01 December 2014 18:53
·
0 Likes
·
0 Votes
·
0 Comments
·
I was thinking over this issue.
as an alternate is there anyway i can force user to fill in the required data after his registration (via facebook) is complete, maybe i can redirect him to "edit my profile" page (only for facebook registrations)?

And btw, the point of having facebook registrations apart from easy registrations, is also to have single login & p.w access, so that user does not have to remember multiple account names and passwords
·
Monday, 01 December 2014 20:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik/Mark,

Do you think JFB connect would be able to overcome this issue?

regards
·
Tuesday, 02 December 2014 15:49
·
0 Likes
·
0 Votes
·
0 Comments
·
I also noticed that birthday field is not imported while registering with facebook, although its a core function in facebook apps
·
Tuesday, 02 December 2014 16:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

I'm really sorry for the late reply. Can you provide us your FTP access so we can debug the Birthday field? It supposedly get imported from facebook.
·
Tuesday, 02 December 2014 17:04
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Nik,

Sorry had to travel, please find the FTP and site credentials as requested.

regards
·
Thursday, 18 December 2014 16:10
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

I'm sorry I've missed your reply. We can replicate your issue in our local and we are still investigate it. We will keep you updated.
·
Tuesday, 23 December 2014 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

We're very sorry for taking a long time to debug this issue. We have finally identified and found a solution regarding this Facebook birthday issue. Facebook, by default, only grants 3 permissions for Facebook apps to use it. However, Facebook offers people who has full control over the app to have all permissions granted. The issue with your site's registration through Facebook is that your Facebook apps doesn't have enough permission to retrieve user's birthday. Therefore, EasySocial is unable to set the birthday for the newly registered user. To let your app use all the permissions, you have to submit your app for approval (follow the steps below).

For more information you can refers here:
https://developers.facebook.com/docs/facebook-login/permissions/v2.2#reference-user_birthday

Review
If your Facebook apps requests this permission then Facebook will have to review how's your apps using it.


Solution for this, you need to Submit Items for Approval in your Facebook Apps. Please follow this screenshot:
1. Open https://developers.facebook.com/apps/[your-apps] .
2. Then, open Status & Review: http://screencast.com/t/f19fbDnt .
3. Search & select user_birthday: http://screencast.com/t/jVnEYSdvGe . Add the item.
4. Complete the required form for Facebook apps submission.

Hope this will help.
Thanks.
·
Tuesday, 23 December 2014 17:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mohd Yasser,

Thanks for your update, i'll check into it.

regards
·
Tuesday, 23 December 2014 18:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi sunny,

You're welcome and please do update us back on this issue.

Cheers.
·
Tuesday, 23 December 2014 18:28
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post