php - unable to retrieve access token linkedin api -
i applying connect linkedin. i'm following step step guide. authenticate users, took this.
when user clicks connect linkedin button user taken linkedin login page. after user has given access account user redirected to:
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 through this, authorization code. , pass in following url
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 here, error comes i.e.
"error":"invalid_request","error_description":"missing required parameters, includes invalid parameter value, parameter more once. : unable retrieve access token : appid or redirect uri not match authorization code or authorization code expired" where going wrong? have double checked api key , secret key.
this both should contain same redirect_uri according below page
https://developer.linkedin.com/documents/authentication
parameter: redirect_uri
description: required. same redirect_uri passed in previous step.
possible errors: different redirect_uri used during authorization code generation; passed invalid value; passed empty or blank value; missing parameter
Comments
Post a Comment