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>My life expectancy is 89.3 years. Use the Towers Watson app to find out yours. </title>
<submitted-url>http://www.towerswatson.com/assets/downloads/mortality/</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.
- Log in to post comments
I'm seeing a similar error when trying to post certain links. For some, I found that I could get it to work by first typing the link manually into the LinkedIn Status Update field on my homepage at linkedin.com. For others, wrapping them in a URL shortener worked. Very strange behavior