As a follow up to my post about exploring the Facebook connection via the Sitecore Social Connected Module, I wanted to show what type of user profile data you receive from the LinkedIn connection out-of-the-box. When a visitor uses their LinkedIn credentials to log in to Sitecore, a Sitecore user is created behind the scenes for that visitor and their LinkedIn profile data is then accessible just like any other user profile field for that user.
Here is an example of the LinkedIn profile data I was able to grab after using my LinkedIn credentials to log in to Sitecore. The following is a list of key-value data that is connected to the user’s Sitecore profile.
Note that the LinkedIn connection can pull many more fields than displayed below but these are the fields that were able to be pulled based on my LinkedIn profile. You can view a full list of eligible fields in the Sitecore.Social.ProfileMapping.LinkedIn.config file that is added to the “App_Config\Include” directory.
ln_basicData_id: 7dNngxCv5N ln_basicData_email: firstname.lastname@example.org ln_basicData_appKey: [Omitted for security purposes] ln_basicData_appSecret: [Omitted for security purposes] ln_basicData_accessToken: [Omitted for security purposes] ln_basicData_accessTokenSecret: [Omitted for security purposes] ln_id: 7dNngxCv5N ln_first-name: Scott ln_last-name: Mulligan ln_email-address: email@example.com ln_headline: Sitecore Developer at bv02 ln_location_name: Canada ln_location_country_code: ca ln_industry: Computer Software ln_distance: 0 ln_relation-to-viewer_distance: 0 ln_num-connections: 92 ln_num-connections-capped: false ln_specialties: I am a Sitecore certified developer! ln_positions: 247057683 2011 true 125356 bv02 ln_picture-url: https://media.licdn.com/mpr/mprx/0_k14DPdPf9KUnjXl0QcE-PwPCnPmJgTl0Q-2tPwCKWzsdCLQxHzH3jI9YZYa6OQK15rV1y2KiML_o ln_site-standard-profile-request_url: [Omitted for security purposes] ln_api-standard-profile-request_url: https://api.linkedin.com/v1/people/7dNngxCv5N ln_api-standard-profile-request_headers: x-li-auth-token name:FhyG ln_public-profile-url: https://www.linkedin.com/in/scottymulligan ln_lastRenewed: 12/18/2014 11:39:03
Clearly there is not as much profile data returned as compared to the Facebook connection but this is very useful if you are looking to collect career and industry data about your site visitors.