Today, I noticed that all my API calls making shares to LinkedIn company pages return the following error:
Invalid arguments: {S_412_PRECONDITION_FAILED=Invalid arguments}
I'm using XML format. I tried to make the same share but to LinkedIn accounts and it works very well.
Here is my xml request:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<share>
<comment>Comment</comment>
<content>
<title>title</title>
<description>description</description>
<submitted-url>URL</submitted-url>
<submitted-image-url>IMAGE_URL</submitted-image-url>
</content>
<visibility>
<code>anyone</code>
</visibility>
</share>
Has there been a breaking change in the LinkedIn API?
Seems LinkedIn has killed oAuth 1.x tokens for /company operations.
Implemented oAuth 2 and things are working fine.
Did not find a public announcement of this change, but typical of LinkedIn to suck when it comes to their public API.
Follow LinkedIns manual to implement oauth 2.0. Then everything works fine. https://developer.linkedin.com/docs/oauth2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With