Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch Email,User connections from linkedin using oauth2?

Currently I am working implementing linkedin login for a website. (Following http://www.raymondcamden.com/2013/04/03/ColdFusion-and-OAuth-Part-2-Facebook/ ). I am successfully able to login, but there are issues while fetching user data from linkiedin. While creating an application in LinkedIn, there is no option for getting permission to user network connections and other data. Here is a screenshot.

enter image description here

When I tried to get the user connections using this url

https://api.linkedin.com/v1/people/~/connections?oauth2_access_token=#session.liaccesstoken# I am getting the below error.

enter image description here

When I tried to get the firstname,lastname and email, Its only fetching firstname and lastname but not the email address.

https://api.linkedin.com/v1/people/~:(id,first-name,last-name,maiden-name,email-address)?oauth2_access_token=#variables.accesstoken

enter image description here

Anyone having idea on it, why its not behaving as per the api expectation?

like image 826
Deepak Kumar Padhy Avatar asked Jan 26 '16 20:01

Deepak Kumar Padhy


1 Answers

I have used this APPLE's SWIFT Language Repo for Linkedin Login and User email fetch. It uses WebView Controller for launching linkedIn Login page. Just drag drop the WebViewController in your project simply push the Controller at the time of need . Here is the URL

like image 128
Mr. Bean Avatar answered Nov 15 '22 06:11

Mr. Bean