无法从linkedIn api获取完整信息

我试过这个

HTML:

 

JS代码:

 function onLinkedInLoad(logintype) { IN.User.authorize(function(){ callback(); }); } function callback(){ IN.Event.on(IN, "auth", OnLinkedInAuth); OnLinkedInAuth(); } function OnLinkedInAuth(){ IN.API.Profile("me") .fields("firstName", "lastName", "industry", "location:(name)", "picture-url", "headline", "summary", "num-connections", "public-profile-url", "distance", "positions", "email-address", "educations:(id,school-name,field-of-study,start-date,end-date,degree,activities,notes)","languages:(id,language:(name),proficiency:(level,name))","skills:(id,skill:(name))", "date-of-birth") .result(ShowProfileData) .error(displayProfilesErrors); } function ShowProfileData(profiles) { console.log(profiles); return false; //its gives me json responce /* { "_total": 1, "values": [{ "_key": "~", "distance": 0, "emailAddress": "xxxxx@gmail.com", "firstName": "xxxx", "headline": "xxxxx", "industry": "Information Technology and Services", "lastName": "xxx", "location": {"name": "xxx Area, India"}, "numConnections": 117, "positions": { "_total": 1, "values": [{ "company": { "id": xxxxx, "industry": "E-Learning", "name": "xxxx", "size": "501-1000 employees", "type": "Privately Held" }, "id": 485779823, "isCurrent": true, "startDate": { "month": 2, "year": 2013 }, "title": "xxxxx" }] }, "publicProfileUrl": "https://www.linkedin.com/pub/xxxxx/xx/xx/xx" }] } */ } function displayProfilesErrors(error) { profilesDiv = document.getElementById("profiles"); profilesDiv.innerHTML = error.message; console.log(error); } 

在我看来,一些查询字段(例如语言,技能,教育领域)要求您的申请已被批准用于LinkedIn应用程序。

请参阅: 配置文件字段描述页面,其中列出了需要其他API的字段(即“可以与LinkedIn开发人员一起申请的成员配置文件字段”),以及如何申请使用此API: 请求访问此API页面。