Please see this thread: User id from LinkedIn - #8 by Ryan_Farren
Shares API seems to be depreciated
To share an organisation post to a personal feed you need to use the new /rest/posts POST API
The shared JSON didn’t work for me because of some strange formatting issue with the brackets and the empty array. If you’re not totally comfortable with JSON than it may take you some time so I suggest one of the mods to edit this code and replace it with this one:
{
"author": "urn:li:person:ID HERE",
"commentary": "Sample text Post",
"visibility": "PUBLIC",
"distribution": {
"feedDistribution": "MAIN_FEED",
"targetEntities": [],
"thirdPartyDistributionChannels": []
},
"lifecycleState": "PUBLISHED",
"isReshareDisabledByAuthor": false,
"reshareContext": {
"parent": "urn:li:share:POST ID HERE"
}
}
The above is for a person but it works for organizations too, just replace author with:
"urn:li:organization:ID HERE"
Im still wondering though how to retrieve the POST ID from a post that is not your own though so would love to hear how that’s done if anybody knows.