Skip to content

Fix Instagram OAuth and connected feed sync - #22

Merged
Dev-Sahad merged 1 commit into
mainfrom
agent/fix-instagram-oauth-sync
Aug 1, 2026
Merged

Fix Instagram OAuth and connected feed sync#22
Dev-Sahad merged 1 commit into
mainfrom
agent/fix-instagram-oauth-sync

Conversation

@Dev-Sahad

Copy link
Copy Markdown
Owner

What changed

  • separates the Facebook Login App ID from Instagram Login credentials
  • removes the invalid fallback that sent a Facebook App ID to Instagram OAuth
  • adds protected Instagram OAuth initiation/callback routes with state validation
  • syncs the connected Instagram professional account, posts, carousels, and Reels through the permissioned API
  • persists public media metadata and private OAuth connection data in RLS-protected Supabase tables
  • renders connected Instagram media on the portfolio and improves the admin setup guidance

Root cause

The Instagram authorization request used the Facebook Login app ID when INSTAGRAM_CLIENT_ID was absent. Instagram rejected that ID because the Meta app only had the Facebook Login use case and was not configured as an Instagram platform app.

Validation

  • npm run lint -- --quiet
  • npx tsc --noEmit
  • npm run build
  • live Supabase migration and RLS verification

@vercel

vercel Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
portfolio Building Building Preview Aug 1, 2026 11:09am

@Dev-Sahad
Dev-Sahad marked this pull request as ready for review August 1, 2026 11:09
@Dev-Sahad
Dev-Sahad merged commit aac4b47 into main Aug 1, 2026
2 of 5 checks passed
@Dev-Sahad
Dev-Sahad deleted the agent/fix-instagram-oauth-sync branch August 1, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant