简体   繁体   中英

Unable to fetch Email and profile pic from installed Linkedin app

I am trying to fetch Linkedin User's following details like Name, email-id, profilePic, id.

I am able to fetch all the details except email-id and profilePic.

Fetching details via Linkedin url

{
    firstName = Apple;
    formattedName = "Apple Live";
    id = 7uRZgpgwgO;
    lastName = Live;
    picture_url = "" ;
    email-id = "abc@gmail.com"
}

Fetching details via Linkedin app

{
    firstName = Apple;
    formattedName = "Apple Live";
    id = 7uRZgpgwgO;
    lastName = Live;
}

Linkedin app code

LISDKAPIHelper.sharedInstance().getRequest("https://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address,picture-url,formattedName)?format=json", success: {
     }

The following code solved my issue

To get email address via app:

[LISDK_BASIC_PROFILE_PERMISSION,LISDK_EMAILADDRESS_PERMISSION]

To get Profile Pic:

picture-urls::(original)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM