Reputation: 23
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?
Upvotes: 2
Views: 549
Reputation: 191
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}/"
Upvotes: 4