Linkedin API access token generation error

后端 未结 5 812
半阙折子戏
半阙折子戏 2021-02-14 06:36

i am trying to generate access token to collect linkedin data. I followed the instructions provided in the linkedin API documentaion. I created an app in developers page and got

5条回答
  •  感动是毒
    2021-02-14 07:02

    My problem was in redirect_uri which contained url with query parameters (like redirect_uri=encodeURIComponent(http://example.com/callback?query=string)).

    If redirect url is completely different linkedin will show you an error before showing you login form, but if redirect_url matches what you specified in linkedin app and contains extra query parameters, you'll not get an error, so once login form is submitted you'll get an invalid code and as a result error as above.

提交回复
热议问题