Run Facebook and Instagram comment giveaways from one secure dashboard.
Built on Next.js App Router, Firebase Auth + Firestore, secure Meta Graph API routes, and a shadcn-style dashboard for filtering, drawing, and re-drawing winners.
Secure Meta access
Facebook login flows through Firebase Auth and page tokens stay encrypted on the server.
Full comment pagination
The API layer keeps requesting comment pages until the selected post is completely loaded.
Fair re-draws
Apply duplicate and keyword filters, pick one or many winners, then re-run the draw instantly.
Sign in
Connect Facebook to start syncing Pages and linked Instagram Business accounts.
Your Firebase session is stored in an HTTP-only cookie. Meta access tokens are encrypted before they ever touch Firestore.
Expected permissions
`business_management`, `pages_show_list`, `pages_read_engagement`, `pages_read_user_content`, `instagram_basic`, and `instagram_manage_comments`.
1. Firebase
Enable Facebook as a provider and create a service account for server routes.
2. Meta app
Add Facebook Login, request the Page + Instagram scopes, and map the callback domains.
3. Run locally
Fill `.env.local`, start `pnpm dev`, and use Settings to sync accounts after login.