Skip to content

Show LinkedIn personal and Page post metrics on the post screen - #364

Merged
paulocastellano merged 2 commits into
mainfrom
feat/linkedin-personal-post-metrics
Sep 18, 2026
Merged

paulocastellano merged 2 commits into
mainfrom
feat/linkedin-personal-post-metrics

Conversation

@paulocastellano

@paulocastellano paulocastellano commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Fetch personal LinkedIn likes/comments from /v2/socialActions (member tokens cannot use /rest/socialActions or memberCreatorPostAnalytics).
  • Fetch Page post lifetime stats from organizationalEntityShareStatistics (ugcPosts / shares), including impressions and clicks.
  • Reuse a connected workspace token when a published row lost social_account_id after a reconnect (nullOnDelete).

Test plan

  • LinkedInAnalyticsTest + LinkedInPageAnalyticsTest + PostController LinkedIn dispatch tests
  • Refresh a personal LinkedIn post whose account was reconnected — likes/comments should appear
  • Refresh a LinkedIn Page post — impressions/clicks (and likes/comments when present) should appear
  • Confirm account-level Page analytics still load (time-interval /rest path unchanged)

Paulo Castellano added 2 commits September 18, 2026 13:26
Member likes/comments come from /v2/socialActions; Page impressions and clicks from organizationalEntityShareStatistics. Reuse a workspace token when the published row lost its account after a reconnect.
A workspace can have several member or Page identities, so the first connected token is not necessarily the one that can read the URN.
@paulocastellano
paulocastellano merged commit ae0fa9e into main Sep 18, 2026
5 checks passed
@paulocastellano
paulocastellano deleted the feat/linkedin-personal-post-metrics branch September 18, 2026 16:40
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