We are glad to welcome you to our Community Support Forums!
These forums are your way of communicating with the community of people developing and using tools provided by the OneAll platform.
The forums are run by the community and moderated by the OneAll team during office hours. Please stick to technical issues - and remember, no confidential information - these are public forums!

How to Add Facebook Profile Fields to WordPress User Profile?

edited August 4 in WordPress
I used PODs to extend the WordPress user profile to include locale & timezone fields.

image

Then I put this code into functions.php

//Social Login Handle data retrieved from a social network profile
function oa_social_login_store_extended_data ($user_data, $identity) {
update_user_meta ($user_data->ID, 'locale', $identity->locale);
update_user_meta ($user_data->ID, 'timezone', $identity->timezone);
}
add_action ('oa_social_login_action_after_user_insert', 'oa_social_login_store_extended_data', 10, 2);


But the fields are still empty in the Users profile. Am I using the right field names for Facebook?

image

Thanks!

Answers

Sign in with your OneAll account to take part in the discussion.