Could not get links Associated connections EMAIL ID

I am trying to get all connections of my linked account in ios app.

I can get id , name , picture-url , etc. The only thing left is email. I cannot receive the email-address all connections.

I am using follong code: -

  OARequestParameter *nameParam = [[OARequestParameter alloc] initWithName:@"scope" value:@"r_basicprofile+rw_nus+r_emailaddress"]; NSArray *params = [NSArray arrayWithObjects:nameParam, nil]; [request setParameters:params]; OARequestParameter * scopeParameter=[OARequestParameter requestParameter:@"scope" value:@"r_fullprofile rw_nus r_network r_emailaddress"]; [request setParameters:[NSArray arrayWithObject:scopeParameter]]; 

and I get connections from

 http://api.linkedin.com/v1/people/~/connections:(id,first-name,last-name,email-address,picture-url,Positions) 

This link returns me only id , first-name , last-name , picture-url and Positions , but NOT email-address .

+1
ios iphone linkedin
Jul 13 '13 at 12:38 on
source share
3 answers

I believe that you cannot.

http://developer.linkedin.com/documents/connections-api

"Since the returned objects are of type" person ", you can access any profile field that is accessible with a member of r_basicprofile permission."

There is no email address field in r_basicprofile. https://developer.linkedin.com/documents/profile-fields#profile

+2
Jul 24 '13 at 13:13
source share

I think you are doing something wrong with the URL , please try below URL

 NSURL *url = [NSURL URLWithString:@"http://api.linkedin.com/v1/people/~:(id,first-name,last-name,email-address,picture-url,Positions)"]; 

Hope this helps you.

+2
Apr 09 '14 at 10:36 on
source share

The answer provided by micro is good and appropriate. You can get help from the link Retrieve user profile data from LinkedIn in iPhone sdk

if you are still wrong, you can follow the link https://github.com/synedra/LinkedIn-OAuth-Sample-Client for help, which gives you a step by step to integrate

But I think you need to do extra work to get your LinkedIn email

I think the url specified in the sample will not get the user email id ( https://api.linkedin.com/v1/people/~)in OAuthLoginView.m

change it by URL: http://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address,formatted-name,phonetic-last-name, location: (country: (code)), industry, distance, current-status, current-share, network, skills, phone-numbers, date-of-birth, main-address, positions: (title), educations: (school -name, field-of-study, start-date, end-date, degree, activities))

If you need limited information, please send the required parameter.

0
Nov 06 '13 at 7:36
source share



All Articles