Topic-icon importing from Facebook

Active Subscriptions:

None
9 years 2 months ago #51300 by guero
Hello,

Having managed to successfully configure JFBConnect to register users (thanks again for the help!), I have a few questions related to importing data from Facebook and map them to fields in Community Builder. In no particular order:

1. Is it possible to import the Facebook 'canvas' image (the large background image, not the profile image) to Community Builder as the user profile canvas image?

2. I guess it's not possible to make the Facebook gender field to a male/female drop down CB field?

3. I have a CB field called 'City' and I'd like to map just the city to it when importing from Facebook. I have chosen 'Basic info - Current city, state'. This might work find with Facebook profiles of people living in the U.S. when it contains, e.g., 'Austin, TX'. However, outside the US, e.g., in Europe, this field seems to actually contain 'city, country' such as 'Berlin, Germany'. This destroys a bit the mapping to just city, as the user would have to delete half the string after signing up via Facebook. Could this be adapted somehow to also work for non-US addresses?

3.b) somewhat related, I have a CB field 'country' which I'd like to map the country to. Is there a way to get the country from Facebook somehow and map it to a field in CB?

4. When hiding all the fields on the JFBConnect sign-up form that can be configured in JFBConnect -> Configuration -> Normal registration, it still shows the string 'Required fields* ' but without any fields. Any chance that could be hidden as well when it doesn't show any of username, password, name, email address?

4.b) related, I'd like to only show the fields required per Community Builder for registration at this JFBConnect sign-up form. That works. But none of these mandatory fields have neither the usual CB style icons to indicate its mandatory or visible on profile. Nor does it show e.g. an asterisk that would indicate they're mandatory. That would be very useful.

Thank you very much again,
Oliver
The topic has been locked.
Support Specialist
9 years 2 months ago #51306 by mel
Replied by mel on topic importing from Facebook

1. Is it possible to import the Facebook 'canvas' image (the large background image, not the profile image) to Community Builder as the user profile canvas image?

We currently don't have this as a feature. I have added it to our tracker to investigate for a future release.

2. I guess it's not possible to make the Facebook gender field to a male/female drop down CB field?

Right now we support gender as a text field only.

3. I have a CB field called 'City' and I'd like to map just the city to it when importing from Facebook. I have chosen 'Basic info - Current city, state'. This might work find with Facebook profiles of people living in the U.S. when it contains, e.g., 'Austin, TX'. However, outside the US, e.g., in Europe, this field seems to actually contain 'city, country' such as 'Berlin, Germany'. This destroys a bit the mapping to just city, as the user would have to delete half the string after signing up via Facebook. Could this be adapted somehow to also work for non-US addresses?

3.b) somewhat related, I have a CB field 'country' which I'd like to map the country to. Is there a way to get the country from Facebook somehow and map it to a field in CB?

Facebook has removed the functionality to import City, State and Country separately. It is all in one combined field. This is not something we have control over. If you want special logic to break it apart, that is something customized that you will have to do yourself. We have no plans to implement this.

4. When hiding all the fields on the JFBConnect sign-up form that can be configured in JFBConnect -> Configuration -> Normal registration, it still shows the string 'Required fields* ' but without any fields. Any chance that could be hidden as well when it doesn't show any of username, password, name, email address?

Joomla is generating this text and it would be extremely hard to remove from code. The best we can suggest is to add some CSS to hide that:
div#jfbc_loginregister_newuser span.spacer {
display:none;
}

4.b) related, I'd like to only show the fields required per Community Builder for registration at this JFBConnect sign-up form. That works. But none of these mandatory fields have neither the usual CB style icons to indicate its mandatory or visible on profile. Nor does it show e.g. an asterisk that would indicate they're mandatory. That would be very useful.

Here's a quick workaround right now to add an asterisk if the field is required. I will add this to the tracker also.
In /plugins/socialprofiles/communitybuilder/communitybuilder.php around line 135, replace
$html .= $field->getFieldTitle($cbFields[$cbField->fieldid], $cbUser, 'htmledit', 'register') . "<br/>";
with
$required = ($cbField->required ? ' *' : '');
$html .= $field->getFieldTitle($cbFields[$cbField->fieldid], $cbUser, 'htmledit', 'register') . $required . "<br/>";

Let me know if you have any further questions/problems.
-Melissa
The topic has been locked.
Active Subscriptions:

None
9 years 2 months ago - 9 years 2 months ago #51327 by guero
Replied by guero on topic importing from Facebook
Thank you, Melissa, for your response and adding these to your feature tracker.
Last edit: 9 years 2 months ago by guero.
The topic has been locked.