feat(instagram): implement real Instagram OAuth flow with business sc… #4

Merged
zooper merged 1 commit from instagram into main 2025-08-09 18:29:56 +00:00
zooper commented 2025-08-09 18:29:31 +00:00 (Migrated from github.com)

…opes

  • Update connectInstagram() to use actual Instagram OAuth URL with client ID 1430176351425887
  • Add Instagram business scopes: basic, manage_messages, manage_comments, content_publish, manage_insights
  • Implement CSRF protection with state parameter generation and validation
  • Add OAuth return detection and authorization code handling in settings page
  • Improve OAuth callback UI with loading spinner and better messaging
  • Ready for production Instagram business account authorization flow

OAuth URL: https://www.instagram.com/oauth/authorize with proper redirect_uri
Callback URL: https://ai-caption-studio.jonsson.workers.dev/auth/instagram/callback

Next step: Add Facebook App Secret to environment for token exchange

…opes - Update connectInstagram() to use actual Instagram OAuth URL with client ID 1430176351425887 - Add Instagram business scopes: basic, manage_messages, manage_comments, content_publish, manage_insights - Implement CSRF protection with state parameter generation and validation - Add OAuth return detection and authorization code handling in settings page - Improve OAuth callback UI with loading spinner and better messaging - Ready for production Instagram business account authorization flow OAuth URL: https://www.instagram.com/oauth/authorize with proper redirect_uri Callback URL: https://ai-caption-studio.jonsson.workers.dev/auth/instagram/callback Next step: Add Facebook App Secret to environment for token exchange
cloudflare-workers-and-pages[bot] commented 2025-08-09 18:29:41 +00:00 (Migrated from github.com)

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
Deployment successful!
View logs
ai-caption-studio e0ee592c Commit Preview URL

Branch Preview URL
Aug 09 2025, 06:28 PM
## Deploying with &nbsp;<a href="https://workers.dev"><img alt="Cloudflare Workers" src="https://workers.cloudflare.com/logo.svg" width="16"></a> &nbsp;Cloudflare Workers The latest updates on your project. Learn more about [integrating Git with Workers](https://developers.cloudflare.com/workers/ci-cd/builds/git-integration/). | Status | Name | Latest Commit | Preview URL | Updated (UTC) | | -|-|-|-|-| | ✅ Deployment successful! <br>[View logs](https://dash.cloudflare.com/a3886cd60d9d98381472be25235a1347/workers/services/view/ai-caption-studio/production/builds/e2029973-2efe-4fbf-a7d9-9e37a035be56) | ai-caption-studio | e0ee592c | <a href='https://2c52d4b1-ai-caption-studio.jonsson.workers.dev'>Commit Preview URL</a><br><br><a href='https://instagram-ai-caption-studio.jonsson.workers.dev'>Branch Preview URL</a> | Aug 09 2025, 06:28 PM |
Sign in to join this conversation.
No description provided.