× Joomla Facebook Connect support forum

Topic-icon Facebook middle name mapping problem

Active Subscriptions:

None
13 years 2 months ago #7840 by fb_634042543
I got a member who filled middle name in his facebook, but JFBConnect seems only map first and last name~~Could the system map the name shown on the user's profile? Or map first+middle+last name?

One more issue, for mapping of gender and birthday, could it be map to radio button field and date field of jomsocial? It could help search function in jomsocial~~

One minor, i would like to know how long(usually) does a new users wait for reload after clicking agree button? Suppose only facebook account created with avator~~

Thanks=]
The topic has been locked.
Support Specialist
13 years 2 months ago #7845 by alzander
We can look into pulling the user's middle name into the Joomla User's full name table as well as the First Last that we already do. It shouldn't be hard, just a matter of keeping configuration options down.

The birthday field should already be able to map to a date field. Check to make sure you're using the latest version of the plugin, and if so, let us know and we can look into it further. Importing into a radio (or drop-down) should be do-able, the problem is that the field would have to have the exact fields that Facebook imports. For Gender, this is easy (Male/Female, and we can even do the translation using the language files), but for any other radio/select, Facebook could pull in any information. We'll try to figure out a way to do it just for Gender, while leaving any other radio/select boxes non-importable, but it's complex to do it.

As for the load time, it will be different on every site, and for every user depending on how far they are from the closest Facebook content delivery network. I don't know of any good guess that would be what the 'normal' value is. Sorry to say.

Hope this helps!
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #7991 by fb_634042543
For the middle name issue, could you tell me how to change it? It's common for Chinese has middle name as our name composes of 3 words commonly.

For field problem, I have map birthday to a text field in Jomsocial before, what should I do for the update? As my site try not to update data from user when login, but only when register to improve speed.

Thanks for your detailed reply=]
The topic has been locked.
Support Specialist
13 years 1 month ago #8004 by alzander
For the middle name, please try the following. We'd love to have your feedback on if it works (no, we haven't tested it yet). We'll try to get an option in 3.2 to include middle name, and with your feedback, it will help us prioritize it.. always nice to implemented things that have been tested :) 2 changes required:
1) /components/com_jfbconnect/libraries/facebook.php, line 179, add the middle_name field like below:
$fields = array(0 => 'first_name', 1 => 'last_name', 2 => 'status', 3 => 'email', 4=>'middle_name');
2) /plugins/authentication/jfbconnectauth.php, line 107, add the middle name:
$response->fullname = $fbUser." ".$fbUser." ".$fbUser;

Again, let us know how this goes. It will work for new users, but will not update previous users when they login, just so you know.. so please test with a new account.

Thanks, and let us know if there's anything else we can help with!
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago #8033 by fb_634042543
The middle name can be captured correctly. Thanks for your hack again, Alex=]

One more concern for this function, facebook has a setting in naming called "Full Name Appears As:", is it possible to capture this name directly? Because some user may type their order in special way that it's strange for us to capture their name in following order.
$response->fullname = $fbUser['first_name']." ".$fbUser['middle_name']." ".$fbUser['last_name'];

For the gender mapping issue, I could help test it if it's ready. =]
The topic has been locked.
Support Specialist
13 years 1 month ago #8048 by alzander
Never looked at the "Full Name Appears As:" field.. that's a great idea! If we can access it.. sometimes they don't let us access everything we want or that you see in the edit profile area.

Let us look into the best way for Gender in JomSocial a little bit more.. again, we already can get that field.. if it's into a text box. It's mainly a matter of enabling you to import it into Select/Radio boxes and then doing the translation from "male/female", which is what Facebook returns to your language or options in the select box (man/woman, etc).

I've added it as a task for us to investigate more for 3.2, so I don't have anything yet, but will hopefully have something for that release (or something that's easy to enable).

Thanks!
The topic has been locked.
Support Specialist
13 years 3 weeks ago #8780 by mel
We've just released a new version 3.2 of JFBConnect tonight. This release adds the middle name field. It also uses the Full Name from Facebook (which takes advantage of the Full Name Appears As field) instead of just using first name + last name. Unless you want to pull in middle name separately, you should just have to install the new component and plugins to get this update.

FYI - We still have the gender import in our list of to-do items. It unfortunately did not get done in this release as we've added a ton of other features.
The topic has been locked.