At the moment the Graph API is only used to get the full name and the email address. There's no system implemented to get extra information.

I know this is the only common information for a Drupal user to be created, but are there plans to allow for extra information to be imported?

CommentFileSizeAuthor
#1 fb_connect_extra_fields.patch6 KBSneakyvv

Comments

Sneakyvv’s picture

Status: Active » Needs review
StatusFileSize
new6 KB

I already wrote a patch, which adds a new setting tab (admin/config/people/fbconnect/extra_fields). Here you can enter the mapping between the Facebook fields and the local user fields. For example:

first_name|field_first_name
last_name|field_last_name
gender|field_gender|male|0|female|1

This means that first_name will be imported into the field_first_name field. If you need the values from Facebook to be mapped to internal values, you can give them after the facebook-internal mapping. So the last line means that male will be saved as 0 and female as 1.

Any thoughts?

klucid’s picture

Thanks for the patch! Works like a charm.