How to get and show extended profile data in Buddypress users profiles?

I'm using Wordpress + Buddypress.
I have "Plus" plan, which allows to get "extended profile data" and in the setup LinkedIn settings there are options to select recommendations, skills, job positions and other data. Also it says "Read access to the users' extended profile data." (which I cannot find where to read).

When I select any of the following data (skills, job position etc.) social login plugin stops working. I want to get this data and show it in Buddypress user profile?

Could anybody point me on how to do this, because I cannot find any documentation on this?
Thank you

Best Answer

Answers

  • Hi,

    Displaying the profile information in Wordpress/Buddypress is discussed here: https://docs.oneall.com/plugins/guide/social-login-wordpress/.

    However, selecting extended profile data for Linkedin (in the OneAll Site configuration for social network) causes errors on logins. Something we are looking into.

    Regards.
  • Expert_DojoExpert_DojoMember
    edited June 2015
    I saw this and tried the snipped of how to save data in xprofile buddypress fields. This works fine and saves first and last name only. But I can not achieve to save other data, like display name, notes, about me or email. Is there is something wrong with my code?
    function oa_social_login_store_xprofile ($user_data, $identity)
    {
      do_action('bp_setup_globals');
    
      xprofile_set_field_data ('First Name', $user_data->ID, $identity->name->givenName);
      xprofile_set_field_data ('Last Name', $user_data->ID, $identity->name->familyName);
    
    //I added those two lines - displayName and profileUrl
      xprofile_set_field_data ('Description', $user_data->ID, $identity->name->displayName);
      xprofile_set_field_data ('Linkedin URL', $user_data->ID, $identity->profileUrl);
    }
    add_action( 'oa_social_login_action_after_user_insert', 'oa_social_login_store_xprofile', 10, 2);
    When I select any of the extended profile data in LinkedIn at first when redirecting URL is like this http://mydomain.api.oneall.com/socialize/redirect.html?provider_connection_token=11111111-1111-1111-1111-111111111111 (I changed original token number I get incase of security reasons)

    and after redirection stops it's like this http://mydomain.com/login/?oa_social_login_source=login
  • Hi,
    Thanks for information.
    Adding the Linkedin ProfileUrl did work on a test Buddypress install, after creating the additional Profile fields, as in https://codex.buddypress.org/administrator-guide/extended-profiles/#sections.

    This is mentioned in the OneAll doc: "To store the full user profile you must extend the structure of your database and then use an action like this [...]".

    Hope this helps.
  • Expert_DojoExpert_DojoMember
    edited June 2015
    Thank you for your answer.

    Also you have mentioned "However, selecting extended profile data for Linkedin (in the OneAll Site configuration for social network) causes errors on logins. Something we are looking into." When we could expect this will be fixed?
  • Hi,
    I think this was related to the original problem. It should work.
    Apologies for confusion.
    Regards.

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.