+44 (791) 5698 086

401 [unauthorized]. authToken contains whitespace – LinkedIn app error while sharing

Earlier I posted about the LinkedIn API error Profile data could not be retrieved . The current error 401 [unauthorized]. authToken contains whitespace is also due to the similar reason (in my case) when trying to share a link through post on linkedin from my application.

My application was sharing the post through api to the url: https://api.linkedin.com/v1/people/~/shares and the 401 error with [unauthorized]. authToken contains whitespace.

In my case, the error was incorrect appkey and appsecret values.

So to solve the issue, first of all make sure that the values are ok.

You can check them on the same error page. They are shown like this:

[application_key:protected] => <your application key here>
[application_secret:protected] => <your application secret here>

Click here to find your linkedin appkey and appsecret

Leave a Reply

Your email address will not be published. Required fields are marked *

Who are we?

Nabtron team includes web, desktop software and mobile apps developers along with SEO professionals.

We are available 24 hours, 7 days a week. Contact us now for anything you need!

Join our mailing list

Lets become friend :) What's your name & email?