1. Create a Meta app At developers.facebook.com, create an app (type: Business).
2. Add Facebook Login
- Valid OAuth redirect: `{NEXTAUTH_URL}/api/auth/meta/callback`
3. Permissions Request/advanced access as needed:
- `pages_show_list`
- `pages_manage_posts`
- `instagram_content_publish`
- `business_management`
4. Instagram Users must link Instagram Business/Creator to their Facebook Page. This is configured in Meta Business Suite, not in goals.ac.
5. Environment variables ``` META_APP_ID=your_app_id META_APP_SECRET=your_app_secret NEXTAUTH_URL=https://app.goals.ac ```
goals.ac exchanges short-lived tokens for long-lived tokens on connect.