Hey, can you help here ?
|
owner: "urn:li:person:" + ownerId, |
Looks like it should be like this: "author": "urn:li:person:8675309"
https://learn.microsoft.com/de-de/linkedin/consumer/integrations/self-serve/share-on-linkedin#creating-a-share-on-linkedin
best regards Michael
{
status: 400,
headers: {
'x-li-responseorigin': 'RGW',
'content-type': 'application/json',
'x-restli-error-response': 'true',
'x-restli-gateway-error': 'false',
'x-restli-protocol-version': '2.0.0',
'content-length': '68',
date: 'Sun, 10 Dec 2023 12:26:57 GMT',
'x-li-fabric': 'prod-ltx1',
'x-li-source-fabric': 'prod-lva1',
'x-li-pop': 'prod-lva1-x',
'x-li-proto': 'http/1.1',
'x-li-uuid': 'AAYMJu7uDegAHiAVXD7aaQ==',
'set-cookie': [
'bcookie=""; domain=.linkedin.com; Path=/; Secure; Expires=Mon, 09-Dec-2024 12:26:57 GMT; SameSite=None',
'lidc="b=TB32:s=T:r=T:a=T:p=T:g=4690:u=1061:x=1:i=1702211217:t=1702286985:v=2:sig="'
],
'x-li-route-key': '"b=TB32:s=T:r=T:a=T:p=T:g=4690:u=1061:x=1:i=1702211217:t=1702286985:v=2:sig="'
},
body: '{"message":"Owner entity type person is not supported","status":400}'
}
Error: Failed to post on LinkedIn