× Joomla Facebook Connect support forum

Topic-icon Help with minor name field mapping please?

Active Subscriptions:

None
Hi

I noticed when registering yesterday that once you login with FB and go to create an account, it asks for all fields it always has apart from username. My reg fields are, username, name, email, password and I have name field set-up in CB as singular name.

To map their name off FB to CB/J! I'm guessing I need to set-up the name style in CB as first name, last name fields and then I can map the names without issue from FB? With regard to current users, by adding these fields to their profiles, when/if they login in with FB will it auto populate or will I have to go in and do it manually?

Thanks
The topic has been locked.
Support Specialist
14 years 9 months ago #12567 by alzander
When using the profile plugins, in the field mapping area, you should be able to use the "User - Full Name" selection to get the singular name into one field, instead of having to split it into 2. So, with that, I don't think you'd have to make a change, but if I'm missing something, let me know.

If you do split the name into first and last name fields, as long as you have the "Always import profile data" option selected in the Profiles area, when they re-login, their information will be updated (or populated if it wasn't already).

Hope that helps, but as always, just let us know if you have any other questions.

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

None
14 years 9 months ago #12582 by gareth1978
Within the CB profile plugin, there is no field shown, to the left side (CB column), detailing name or full name. I have the option within the mapping field as User - Fullname, but under the CB column, I only have first name, middle name, last name (as the name fields, none of which are used on my site).

With regard to the always import profile data, the users of my site will, for the most part, not always want their Facebook profile picture on my site, as it's primarily professional in it's orientation.

Thanks
The topic has been locked.
Active Subscriptions:

None
14 years 9 months ago #12876 by gareth1978
Any info regarding the above post please? I know you're not ones for ignorance, so I presume it slipped by unnoticed! :)

I'm soon to go live with DT Register, also integrated with JFBC and CB, so name mapping is a necessary requirement. (Well it's not, but we all like to sound like our every whim is the be all and end all!)

Thanks
The topic has been locked.
Support Specialist
14 years 9 months ago #12883 by alzander
Gary,
Very, very sorry for the delays. You're obviously correct that this post fell through, and while not common, it does happen. If it helps, it's not you, it's us :D

Now, let's get you fixed up. For the name field, you won't see that in the drop-down. The predefined field of 'name' within Community Builder actually references the main Joomla user's name (in the User Manager). This field is automatically filled in by JFBConnect when a user registers with the users full name (First + Last), and we don't really give users any say about that. If you have separated out First and Last name fields, they should show up in your list, and you can choose to map those however you want.

Right now, for the mapping fields, we show any fields in CB that you could map into (mainly text type or specific 'predefined' ones). We do however show fields whether they are published or not, so even if you're not using the first, middle, last name fields, they'll show up. If you're not using them, just leave the mapping to "None"

As for the avatar, if you don't want it imported, we have an easy option to disable that ability so you don't have to worry about it. Alternatively, you can set the "Always import profile" setting to No. For a site with reservations for things, we'd recommend that setting, so that it only imports the user's profile (and avatar, if you want) once.. and then, if they update bits of their profile, it won't be overwritten later on.

In all, from the above questions, it doesn't seem like there's anything to 'fix', we just need to clarify things. However, if I'm mistaken and you're actually running into issues, just let us know. We'll prioritize anything from you going forward just to make sure we get you going.

Hope this all helps, but let us know if you need anything.

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

None
14 years 9 months ago #12896 by gareth1978
It makes sense now. On further testing I can see that although it requests the name after logging in with Facebook (if creating a full account) then despite it being "required" any entered name is disregarded and the FB name is used. It's a good thing, I just wasn't aware that the name field I need and require, appears to be a different name field to that recognised in J! and CB and is actually ignored entirely within my set-up.

It did highlight a problem though. I have my own registration form with a custom field and this is no longer requested (it's a required field although is set with a default value). If a user now logs in through FB, they can by pass my request for this field and therefore not be aware the option even exists.

Is there a way to edit the form JFBC presents to include this field please?
The topic has been locked.
Support Specialist
14 years 9 months ago #12903 by alzander
If the field is marked as required and not being mapped to, you should be able to enable the "Show Non-Mapped Required Fields" setting in the Profiles area of JFBConnect, and it should show. This only works with the Full Joomla User mode of JFBConnect, as that's the only time a registration form is shown to the user.

If things are configured as above, and not working, let us know, and we'll have to investigate why it's not showing. You shouldn't have to edit anything manually (we try to make it so you never have to hack code.. though of course, that's not always possible).

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

None
14 years 9 months ago #12905 by gareth1978
The name field is sorted. It seems there's a strange anomoly somewhere with it, because it was set as required and I also have "Show Non-Mapped Required Fields" on, but it still appeared in the form, yet regardless of data entered it was ignored and replaced with FB info once submitted! I've now set it as not required, it doesn't appear on the form and gets entered by JFBC correctly?!What gives eh! It's clearly nothing to worry about anyway. :)

With regard to the missing required field, it always has a value, unfortunately, so would be presumed filled in I presume. The other issue is, it's not a standard field, it's created in CB Profile Pro and is a question with drop down answers of yes and no that defines whether their profiles are displayed to the public.
The topic has been locked.
Support Specialist
14 years 9 months ago #12942 by alzander
Gary,
JFBConnect should still be showing the required field, even if it has a default. The only time the default should be used is if there's no mapping for it from Facebook and the user doesn't fill it out during the registration process (either leaving it blank, or you're using Facebook User Only so they don't see it).

With that said though, we only 'see' standard Community Builder fields. There's a lot of extensions that extend Community Builder in different ways which would make it extremely difficult to integrate with all of them. Is there any way to use the built-in field capabilities of CB?

If not, we may be able to help with a code change that may add the field or a way to hard-code it for all Facebook users. Then, you can set the new user redirection to their profile page where they could edit/modify that value how they see fit (we can even give a line of code to put a one-time message up there letting them know about the setting).

Let us know what works for you.. building in integration with CB Profile Pro is not on our plate for anytime in the near future, but hopefully, we can get you a suitable workaround.

Thanks,
Alex
The topic has been locked.