How to Add Facebook Profile Fields to WordPress User Profile?

edited August 2017 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

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.