Wednesday, September 5, 2012

The Linkedin API with OAuthStarterKit

An iOS app I've been working on at work, requires me to use OAuth with linkedin, to use the app users data for autofilling in a job application

I started with git: https://github.com/synedra/LinkedIn-OAuth-Sample-Client

And immediately got the error "signature_invalid" returned, when calling for any specific field selections.

 I eventually sussed it and answered my own question in how to get it to give me the users authorized data including their email, telephone, address, job history etc etc.

The raised question was here:
linkedin-api-error-invalid-signature-in-iphone-starter-kit

The profile usage link here:

https://developer.linkedin.com/documents/profile-api

I'm able to get the users email address which conflicts with official information from Linkedin's site (Depending on where you look) e.g. here a Linked in staff member explains that email is not given out to protect their users:
https://developer.linkedin.com/forum/getting-started-linkedin-api-read-first