• Ok, I have installed the Facebook connect plugin.

    I have modified it’s code so that when a user logs in via facebook it asks them for access to email, relationship, website, location and birthday.

    I have added those user fields in the user profiles of wordpress.

    It doesn’t seem to save the additional info though.

    Am I missing some code to save the info?

    Here is my code for the user fields.

    // Add extra contact info to user profile page function extra_contact_info($contactmethods) { unset($contactmethods[‘aim’]); unset($contactmethods[‘yim’]); unset($contactmethods[‘jabber’]); $contactmethods[‘user_birthday’] = ‘Birthday’; $contactmethods[‘user_location’] = ‘Location’; $contactmethods[‘user_relationship_details’] = ‘Relationship’;

    return $contactmethods;

    } add_filter(‘user_contactmethods’, ‘extra_contact_info’);

    Here is modified plugin code.

    $scope = apply_filters(‘nextend_fb_scope’, ’email,user_relationship_details,user_birthday,user_location,user_website’); $loginUrl = $facebook->getLoginUrl(array( ‘scope’ => $scope ));

    Like I said it does ask for permission to access, just doesn’t save it, i must be missing something.

    http://wordpress.org/plugins/nextend-facebook-connect/

  • The topic ‘Saving new user data’ is closed to new replies.