Setup Guide
Setup Social Media Analytics
Untuk Instagram/Facebook reach, impression, engagement, comments, top posts.
Step by step
1. Pastikan akun IG Business
Instagram harus Business/Creator dan terhubung ke Facebook Page.start
Instagram harus Business/Creator dan terhubung ke Facebook Page.start
2. Buat Meta App
developers.facebook.com → My Apps → Create App → Business.todo
developers.facebook.com → My Apps → Create App → Business.todo
3. Tambah permissions
instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement.todo
instagram_basic, instagram_manage_insights, pages_show_list, pages_read_engagement.todo
4. Generate token
Graph API Explorer / system user token. Untuk production perlu app review.todo
Graph API Explorer / system user token. Untuk production perlu app review.todo
5. Simpan token per brand
IG_TOKEN_GRIESMAKEUP dan IG_TOKEN_IWM di .env.todo
IG_TOKEN_GRIESMAKEUP dan IG_TOKEN_IWM di .env.todo
6. Test fetch insight
Dashboard nanti tampil follower, reach, impression, comments, top posts.todo
Dashboard nanti tampil follower, reach, impression, comments, top posts.todo
ENV yang dibutuhkan
META_APP_ID=... META_APP_SECRET=... IG_TOKEN_GRIESMAKEUP=... IG_TOKEN_IWM=...
Simpan di: /home/ubuntu/apps/web-command-center/.env
Permission: chmod 600 .env
Test koneksi
Setelah OPENAI_API_KEY diisi di .env, cek status:
Safety rule
API key jangan ditulis di halaman publik. Jangan aktifkan publish real sebelum backup + dry-run sukses.