当前位置: 动力学知识库 > 问答 > 编程问答 >

php - Linkedin Share API not returning all the fields

问题描述:

I am using linkedin share api for user login in my website. While login I fetch some information of the users from there linkedin profile. And linkeding in not returning the values of some fields even when user have updated my profile with those fields.

I am setting the scope as 'r_basicprofile r_emailaddress rw_nus'

My linkeding fetching parameters code is as below

$user = fetch('GET', '/v1/people/~:(id,firstName,lastName,headline,picture-url,email-address,skills,public-profile-url,industry,positions:(title,start-date,end-date,is-current,company:(id,name,size)),languages:(id,language,proficiency),num-recommenders,volunteer,educations,certifications:(id,name),publications:(id,title))');

I am able to get almost all the fields values, but not able to get values for fields like languages, publications.

Is there any thing wrong in my script, or I have to use some special method for that, as I have searched on google, I have found the same solution as I am doing.

网友答案:

For languages and publications you need r_fullprofile scope.

See https://developer.linkedin.com/documents/profile-fields#fullprofile for a list of fields that require the full profile.

分享给朋友:
您可能感兴趣的文章:
随机阅读: