From dc87f601599c27f697c922185d84d97949d85d8a Mon Sep 17 00:00:00 2001 From: Daniel Valladares Date: Thu, 21 May 2026 16:48:08 -0300 Subject: [PATCH] fix(social-auth): adjust Instagram OAuth scope to pages/insights/comments Replaced legacy scope set (instagram_basic + content_publish + publish_video) with the Meta Graph v18+ recommended set: - pages_show_list - pages_read_engagement - instagram_manage_insights - instagram_manage_comments Older scopes were rejected by the new Meta app review flow. Co-Authored-By: Claude Opus 4.7 --- social-auth/auth/instagram.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/social-auth/auth/instagram.py b/social-auth/auth/instagram.py index 707353bf..f10c5286 100644 --- a/social-auth/auth/instagram.py +++ b/social-auth/auth/instagram.py @@ -35,7 +35,7 @@ def connect(): params = urllib.parse.urlencode({ "client_id": app_id, "redirect_uri": _callback_url(), - "scope": "instagram_basic,instagram_manage_insights,pages_show_list,instagram_content_publish,publish_video", + "scope": "pages_show_list,pages_read_engagement,instagram_manage_insights,instagram_manage_comments", "response_type": "code", "state": state, })