Skip to content

[qa:analytics] Aries ingests/displays no Meta analytics — Results empty, all /api/insights/* empty #596

Description

@DeliciousHouse

Journey stage: analytics
Severity: high
Prod URL: https://aries.sugarandleather.com/dashboard/results

Summary: A first-time user who has connected Meta (Facebook + Instagram) and has published/ready content sees no analytics anywhere in Aries. The Results page only ever renders an empty-state, and every /api/insights/* endpoint returns empty data — so the golden-journey "Analytics" gate cannot pass. Meta analytics are never ingested.

Steps to reproduce:

  1. Sign in (tenant 15, Meta + Instagram show Connected at /dashboard/settings/channel-integrations).
  2. Navigate to Results (/dashboard/results).
  3. Observe the page; then inspect /api/insights/summary, /api/insights/posts, /api/insights/account-metrics.

Expected: Post-level and account-level insights (impressions/reach/views, likes, engagement, followers) for the connected Meta/Instagram account, with a "last updated" sync timestamp.

Actual: Results renders only the empty-state — "Results appear here after social content runs and real performance data is available." / "Results will appear after posts run." No metrics ever appear. Backing APIs all return empty despite a live Meta connection:

  • GET /api/insights/summary200 {"totalViews":0,"currentFollowers":0,"totalLikes":0,"totalComments":0,"totalShares":0,"totalEngagement":0}
  • GET /api/insights/posts200 {"posts":[],"count":0}
  • GET /api/insights/account-metrics200 {"series":[]}

Root cause (from code map): (1) the Meta/Instagram insights sync adapters are unimplemented stubs ("Phase 4+"); only YouTube has a working adapter, so Meta sync records status=failed ("No insights adapter registered for platform"); (2) the direct-Meta connection has no insights scopes (read_insights / instagram_manage_insights) so the Graph insights calls would be rejected even if an adapter existed; (3) no regression even reaches the UI because there is real data to show.

Evidence:

  • screenshots: .qa-loop/evidence/pass1/analytics/results-*.png (empty-state only)
  • network: all /api/insights/* return 200 with empty bodies (captured above)
  • Meta connection confirmed live: /api/integrations → facebook connected (account "Sugar and Leather AI", id 1002997576221948), instagram connected

Related merged PRs: #561 (insights endpoints shipped without a consuming frontend / Meta adapter)
Suggested area: backend/insights/sync (Meta/IG adapters) + Meta scope grant + App Review (read_insights,instagram_manage_insights) + frontend Results wiring

Metadata

Metadata

Assignees

No one assigned

    Labels

    gate:analyticsGolden-journey gate: insights/analyticsqa-defectProduction QA loop defect (golden journey)sev:blockerSeverity: blocks the whole journey

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions