Search code examples
linkedin-api

What is redirect-url field in linkedin application regiration


I am new to linkedin app development. i just want to know what i need to give in the redirect-url field. I am getting an error Invalid redirect URI. Can any one help me out

Thanks in Advance


Solution

  • Generally redirect uri is used for getting server response values...!

    (i.e) I'm passing https://www.linkedin.com/uas/oauth2/authorization?response_type=code&redirect_uri=YOUR_REDIRECT_URI

    This YOUR_REDIRECT_URI could be anything... mine was example.com/callback And in return from above i can get authorization code

    example.com/callaback/?code=AUTHORIZATION_CODE&state=STATE
    

    So finally in your code you can get this authorization code.

    For more information please see this link