Skip to content

docs(linkedin-reshare): warn that activity id and share id can differ - #27

Open
sergebulaev wants to merge 1 commit into
mainfrom
docs-reshare-parent-urn-caveat
Open

docs(linkedin-reshare): warn that activity id and share id can differ#27
sergebulaev wants to merge 1 commit into
mainfrom
docs-reshare-parent-urn-caveat

Conversation

@sergebulaev

Copy link
Copy Markdown
Contributor

The parent format guidance says the activity id and share id are "typically the same number" and suggests swapping urn:li:activity:urn:li:share:.

In practice they are not guaranteed to match. On real posts the activity URN and the share/ugcPost URN can be different numbers (e.g. a post whose activity id ends ...641024 but whose ugcPost id ends ...488704). A blind prefix swap then reshares the wrong post or is rejected with the parent must be a valid LinkedIn post URN 400.

Clarifies: prefer the post's actual shareUrn/ugcPost URN (most scrapers return it), and treat the activity→share swap as a best-effort fallback only. Docs-only, one section.

The parent-URN guidance said the activity id and share id are 'typically the
same' and to swap the prefix. In practice they are not guaranteed to match:
real posts exist where urn:li:activity:<a> and the share/ugcPost id differ, so a
blind prefix swap silently reshares the wrong post or 400s. Clarify to prefer
the post's real shareUrn/ugcPost URN and treat the activity->share swap as a
best-effort fallback only.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant