Conversation
supportthis plugin stopped working, and I have had to make changes to it to get it going again – posted here to help others ! These changes the api URL to https://api.linkedin.com/v2/me to conform with V2, and take out the ‘sharing’ scope whoch is not allowed under default access (you need a partnership set-up to get this, which we don’t need!) \linkedin-login.1.1.3\linkedin-login\includes\lib\PkliLogin.php line 25 changed to const _BASE_URL = 'https://api.linkedin.com/v2/me'; around line 217 changed to `// Get first name, last name and email address, and user picture $xml = $this->oauth->get(‘ https://api.linkedin.com/v2/me’ ;) ; $xml = json_decode($xml); $email_data = $this->oauth->get(‘ https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~) )’); $email_data = json_decode($email_data); $profile_pic = $this->oauth->get(‘ https://api.linkedin.com/v2/me?projection=(id,profilePicture(displayImage~:playableStreams) )’) ; $profile_pic = json_decode($profile_pic); $locale_lastName = $xml->lastName->preferredLocale->language.’_’.$xml->lastName->preferredLocale->country; $lastName = $xml->lastName->localized->$locale_lastName; $locale_firstName = $xml->firstName->preferredLocale->language.’_’.$xml->firstName->preferredLocale->country; $firstName = $xml->firstName->localized->$locale_firstName; $data = [ ‘id’=>$xml->id, ‘first-name’=>$firstName, ‘last-name’=>$lastName, ’email-address’=>$email_data->elements[0]->{‘handle~’}->{’emailAddress’}, ‘picture-url’=>$profile_pic->profilePicture->{‘displayImage~’}->elements[0]->identifiers[0]->identifier, ]; return (object)$data;` linkedin-login.1.1.3\linkedin-login\includes\lib\class-pkli-scopes.php line 29 commented OUT //const SHARING = 'w_member_social'; \linkedin-login.1.1.3\linkedin-login\includes\lib\class-pkli-settings.php line 181 commented OUT to prevent error // Pkli_Scopes::SHARING => 'Share', This topic was modified 7 years ago by Robin W .
Is this issue specific to the Share button? (Seems to still be working for me.)
linked in have been enforcing their new v2 – my client site stopped working last week. it may be that yours will work – I cannot say, was just posting what worked for me to fix
Hi Robin, Same issue I am facing, I am not a developer, so if possible please share text version of the file Thanks
I’ll cut a version that you can download in the next coupe of days
Thanks a lot – I tired but plugin showing fatal error message.
ok, I’ve cut a version, try this http://www.rewweb.co.uk/ultimate-linkedin-plugin-v2/
@robin-w i installed your version and seems like I could not get Headline and Positions display in buddypress profile. Please assist thanks.
sorry, I’ve not tried to do anything with buddypress – and have no idea what ‘headline and positions’ mean I don’t promise to fix – it’s not my plugin !! – but do you have a link to an example
Is this issue specific to the Share button? (Seems to still be working for me.)
linked in have been enforcing their new v2 – my client site stopped working last week. it may be that yours will work – I cannot say, was just posting what worked for me to fix
Hi Robin, Same issue I am facing, I am not a developer, so if possible please share text version of the file Thanks
I’ll cut a version that you can download in the next coupe of days
Thanks a lot – I tired but plugin showing fatal error message.
ok, I’ve cut a version, try this http://www.rewweb.co.uk/ultimate-linkedin-plugin-v2/
@robin-w i installed your version and seems like I could not get Headline and Positions display in buddypress profile. Please assist thanks.
sorry, I’ve not tried to do anything with buddypress – and have no idea what ‘headline and positions’ mean I don’t promise to fix – it’s not my plugin !! – but do you have a link to an example