Skip to content

Every analytics tool wants a subscription. And your data. I built Twiligent instead. YouTube stats. Instagram stats. One dashboard. Runs locally on your machine.

fix: align Instagram OAuth URL with Facebook dashboard (force_reauth, correct scopes)

valzor604b3b4d8106
diff --git a/backend/routes/instagramAuth.js b/backend/routes/instagramAuth.js
index 0695cb8..34f0446 100644
--- a/backend/routes/instagramAuth.js
+++ b/backend/routes/instagramAuth.js
@@ -18,12 +18,11 @@ export async function urlHandler(c) {
const state = await createOAuthState(c.get('userId'), APP_SECRET);
const params = new URLSearchParams({
- enable_fb_login: '0',
- force_authentication: '1',
+ force_reauth: 'true',
client_id: APP_ID,
redirect_uri: REDIRECT_URI,
response_type: 'code',
- scope: 'instagram_business_basic,instagram_business_content_publish,instagram_business_manage_insights,instagram_business_manage_comments',
+ scope: 'instagram_business_basic,instagram_business_manage_messages,instagram_business_manage_comments,instagram_business_content_publish,instagram_business_manage_insights',
state,
});