jeyben / IOSLinkedInAPI

Simple and non intrusive library to get access tokens for LinkedIn using Oauth2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid redirect_uri

daisoreanu opened this issue · comments

Hi, and I would like to thank you for this library and the future help

I tried to implement this code in my project:

https://github.com/jeyben/IOSLinkedInAPI/tree/master/Example/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample/IOSLinkedInAPI-Podexample

and entered my own values, I don't get any errors, but when I tap the Linked in button,
instead of beeing redirected to the LinkedIn log in page I get the next error: "invalid redirect_uri. This value must match a URL registered with the API Key"

I found the issue to be on the way I have setted my link on Linkedin app settings page, but I still don't know how to retrieve the users skills..

Also fount the answer to my second question by trial and error, I just had to edit the link to:
@"https://api.linkedin.com/v1/people/~:(skills)?oauth2_access_token=%@&format=json"