feat(instagram): official Like Media API lane + engagement scope #2979
All Vouch review confidence checks passed
Residual risk 0.20 = Change Risk (0.35) × (1 − Review Confidence (0.43)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 166 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 85% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.306
Real PR Conversation Timeline
1 comments
"Review active on #2979"
general
weight: 0.35
copilot-pull-request-reviewer[bot]
Summary
InstagramAPIClient.like/unlikeimplement the Like Media and Comments API (shipped 2026-04-22) —POST/DELETE /{ig-user-id}/likeswithmedia_idorcomment_id, Facebook-Login lane only.ig_actorlikes through the official endpoint when a Facebook-Login account exists, resolving browser-ingested shortcodes to Graph media ids viabusiness_discoverypermalink matching (cached in action meta). Missing-scope errors fall back to the legacy browser lane only until re-consent; private/deleted media fails permanently.instagram_manage_engagement+instagram_manage_commentsadded to the IG_API_ONBOARDING authorize URL and the legacy facebook-dialog flow — the next reconnect arms the compliant lane.Test plan
pytest tests/unit/test_instagram_api.py tests/unit/test_engagement_actors.py— 132 passed (host venv)/api/v1/auth/oauth/instagram-onboarding/authorizeso the token carriesinstagram_manage_engagementGenerated with Devin