1

The website I'm building needs to display company page updates. This needs to work for all users without the need to log in to LinkedIn (or even have a LinkedIn account).

I created an app and I can run the REST API call by passing the access token, which is all great and as expected.

However... to initially get the access token I need to get the authorization code, which, from what I can see, I can only get by logging in as a LinkedIn user in the browser. Is there a work around for this? I could do this initially manually, but the access token expires in 60 days and to renew it I, again, need to be authenticated. I need full automation in the background with no interaction of users with LinkedIn. Is that possible with LinkedIn API?

1 Answer 1

0

An end-user (Referred to as the Resource Owner) needs to provide consent for delegation to your application (OAuth Client) for access to his data from the Resource Server.

Before your access token expires, Linkedin does allow your app to Refresh your Access Tokens which allows your app to fetch a new Access Token.

As it turns out, the access tokens of linkedin can not be refreshed without having linkedin user logging in to linkedin as discovered in another answer.

-jim

2
  • An end-user in this case would be me, as the website is making the requests on my behalf. Once granted access to app I can get authorization code and access token, but how can I refresh the token automatically from the website?, is there a way to programmatically authenticate in order to get the refreshed token?, I understand user needs to be authenticated for this...
    – tsw_mik
    Commented Sep 13, 2017 at 8:39
  • As it turns out, the access tokens of linkedin can not be refreshed without having linkedin user logging in to linkedin as discovered in another answer.
    – jwilleke
    Commented Sep 13, 2017 at 13:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.