2
votes

When creating a post via API, Linkedin is returning a invalid page as the post URL,

Request URL: https://api.linkedin.com/v1/companies/2414183/shares?format=json

Return Example: "updateUrl": "https://www.linkedin.com/company/2414183/comments?topic=6329365970687131648&type=U&scope=2414183&stype=C&a=kQPg"

How can i get the real post address?

1
Are you using v1 OAuth 1.0a or v2 OAuth 2.0 authentication token ? Did you activate shares option when you've created the application? - user8556290
We have migrated from Auth1 to Auth2 recently and the share option is activated, the company share is created successfully, the problema is the link to the created post that returns an invalid page - Thiago Lu
so you link isn't good look at the version you use : api.linkedin.com/v1 you use version 1 and you want v2 ... etc - user8556290
is there a v2 for the api? - Thiago Lu

1 Answers

3
votes

I reported the same issue days ago and they still didn't address it, even though they said over Twitter that their engineering team is aware of the issue and working on a fix.

Haven't heard from them since then.

I just ended up constructing the "right" permalink "by hand":

id = "UPDATE-c5323310-6328147480441683969"
url = "https://www.linkedin.com/feed/update/urn:li:activity:#{id.split('-').last}/"