LinkedIn API – Unable to Retrieve Access Token

UPDATE – LinkedIn has released a fix for this issue.

Ran into a fun little bug with the LinkedIn API this morning:

'{"error":"server_error","error_description":"the authorization server encountered an unexpected condition : Unable to retrieve access token"}'

Turns out that if a user revokes access to your application using their LinkedIn security settings, the API will throw this error if they ever try to re-authorize the application.

The only way to resolve the issue is to create a new application in the developer portal and use the new API keys. Not good, especially considering that LinkedIn generates unique user IDs for each application. So if you’re making use of the user ID in any sort of way, you’d have to figure out a way to reconcile the users (perhaps via their email address).

LinkedIn is aware of the issue and has said the fix is ‘a few weeks’ away. At least it’s not a few months…

On a side note – be sure to update your LinkedIn applications with OAuth2.0 redirect URLs.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s