简体   繁体   中英

Linkedin get user's connection from id

I am developing an iOS app, I want to integrate linkedin This is how I want to use linked in to my app.

I am logged in from User A account , now I want coonection detail of User B , How to get that detail. I have read on linked in document anout this api

https://api.linkedin.com/v1/people/{id}/connections?modified=new

But this is not working. I am getting this error

**<?xml version="1.0" encoding="UTF-8"?>
<error>
  <status>403</status>
  <timestamp>1426852256729</timestamp>
  <request-id>544WHZL91V</request-id>
  <error-code>0</error-code>
  <message>Access to connections denied</message>
</error>**

Can anyone please advice me on this?

Here I am using FACEBOOK tag to get more people attention this, I need this on immediate basis.

You can only get the first degree connections for authorized users, and the second degree connections - but only with approvel from LinkedIn afaik. And you have to use the People Search API to get second degree connections, it´sa bit more complicated than the Connections API.

More information:

If you want to show connections between two users, there is only one way i can think of:

  • Both users must authorize your App
  • You need to store all their first level connections
  • Whenever the user comes back to your App, you need to update the connections
  • You can compare the connections directly in your database

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