我正在申请connect with linkedin
。我正在关注step by step guide。为了验证用户,我从this获得了帮助。无法检索访问令牌linkedin api
当用户点击connect with linkedin
按钮时,用户将被带到linkedin登录页面。在用户访问账户后,用户被重定向到:
https://www.linkedin.com/uas/oauth2/authorization?response_type=code&client_id=1ba8ogpm9e05&scope=r_basicprofile%20r_emailaddress&state=STATE&redirect_uri=http://127.0.0.1:8088/sandbox/linkedin/test.php
通过这个,我得到授权码。并通过它在以下网址
https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code=AUTHORIZATION_CODE&redirect_uri=http://127.0.0.1:8088/sandbox/linkedin/final.php&client_id=1ba8ogpm9e05&client_secret=n7GN09I3F2L3IJD1
这里,错误出现即
"error":"invalid_request","error_description":"missing required parameters, includes an invalid parameter value, parameter more then once. : Unable to retrieve access token : appId or redirect uri does not match authorization code or authorization code expired"
我要去哪里错了?我已经仔细检查了我的api密钥和密钥。 REDIRECT_URI
描述:
https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code&code=AUTHORIZATION_CODE&redirect_uri=http://127.0.0.1:8088/sandbox/linkedin/final。php&client_id = 1ba8ogpm9e05&client_secret = n7GN09I3F2L3IJD1 您已将AUTHORIZATION_CODE置于需要的位置,对吗?让我知道如果你做得正确.. – 2013-03-25 12:54:06
是的,我传递正确的授权码 – user2199343 2013-03-25 12:59:47