I'm having problem posting a share to LinkedIn from my Android application. I'm using the library Linkedin-j for Android. I'm encountering the error "could not find article that just added to db: 5576330055082049537" when attempting to share with the status code of 400.
The XML request body that Linkedin-j is sending is:
<?xml version="1.0"?>
<share>
<content>
<title>The quick brown fox jumped jumper over the lazy dog </title>
<submitted-url>http://www.mywebsite.com/</submitted-url>
</content>
<visibility>
<code>connections-only</code>
</visibility>
</share>
I've successfully requested and retrieved a valid oAuth access token and I can post a status updates. But I can't post shares.
I've tried this on a two different API accounts and have the same issue. I've also tried adding the comment field to the request but this had no effect.
I've checked over the documentation here https://developer.linkedin.com/documents/share-api# and can't see that I'm doing anything wrong.
Thanks.