3

How to Fetch LinkedIn Contacts in iOS ? I read their API but in that api to fetch connections are not available any more. Is there are other alternate way to do it ? I tried OAUTH2 but by that I can only login and get user basic info.

This is how its done in Android . here

Nitesh
  • 1,564
  • 2
  • 26
  • 53

2 Answers2

1

As it's mentioned here :

LinkedIn has restricted their open API access, and this no longer works.

This question may be possible duplicate question to: linkedin-api-get-information-about-my-all-connections

Community
  • 1
  • 1
  • But in Android it is possible. How this is duplicate question ? I'm asking if there is any alternate way. – Nitesh Apr 14 '17 at 21:53
  • can you please provide a link to the android code or snippets to fetch linkedin connections , i don't think this work for one plateforme and not for others . – BAHRI Abdelhak Apr 14 '17 at 21:58
  • Why did someone downvote this? Seems like good information to me. Upvoted. – Linuxmint Apr 20 '17 at 16:13
1

As stated here:

https://developer.linkedin.com/support/developer-program-transition

the access for connections have been removed from the public API. You can only get access if you apply to a Partner Program which requires an official review of your app.

The example code you posted for Android doesn't actually use the public API to get the connections, it uses the API to get an access token and then uses the following URL to get the connections in CSV format and shows it in a WebView:

https://www.linkedin.com/people/export-settings?exportNetwork=Export&outputType=microsoft_outlook

If you don't want to use a WebView, you could possible download the CSV output, and parse it to get the actual data.

To parse the CSV you can use a CSV library like the following: https://github.com/davedelong/CHCSVParser

halil_g
  • 631
  • 6
  • 11
  • I know they are using that `URL` to export connections in csv but I couldn't download that csv using same session. – Nitesh Apr 24 '17 at 04:09
  • Are you sure you're setting the oAuth token that you get from the API to the `WebView` requests? You have to add the oAuth token manually to every `URLRequest` you make through `UIWebView`. – halil_g Apr 24 '17 at 09:50
  • Yes I'm setting OAuth token but still it asks again to login. – Nitesh Apr 24 '17 at 09:52