Skip to content

Facebook Page insights API: GET /{page-id}/insights

When PubNio calls Facebook's Page insights request, GET /{page-id}/insights: the scopes it needs, the errors PubNio handles for it, and its pinned spec revision.

PubNio calls Facebook’s GET /{page-id}/insights (Page.insights) to read a Page’s daily insights.

How PubNio calls it

  • Account analytics: the account sync makes this call; GET /api/v1/workspaces/{workspaceId}/analytics/accounts/{accountId} returns what it stored.
  • PubNio asks for page_media_view, page_impressions_unique, page_post_engagements, and page_views_total with period=day.
  • It stores them as impressions, reach, engagement, and profile visits in that order. Reach is kept as a daily series and never summed across days.
  • The follower count does not come from this edge: PubNio reads followers_count from the Page node in a separate request.

Scopes

  • The pinned spec names no scope. See Facebook scopes and permissions.
  • Before the account analytics sync makes this call, PubNio checks that the account granted pages_read_engagement and read_insights.

Errors

No error page names this call; see Facebook error codes.

Spec and changes

Page.insights in the pinned spec, revision 5c1fa8a1653722b402133f033fcc321d67981bbd.

Refreshed by hand: no weekly change record.

Limits

  • PubNio keeps 89 days of Page history and does not ask for older days.

Sources

Type to search…

↑↓ navigate↵ selectEsc close