Meta API Setup
Connect Facebook & Instagram to enable auto-posting
Credentials incomplete
Follow the steps below, then restart the service.
Current Credential Status
Step-by-Step Guide
Create a Meta Developer App
- Go to developers.facebook.com
- Click My Apps → Create App
- Choose type: Business
- Name it e.g. T&A Social Scheduler
Add Products & Request Permissions
- In the app dashboard, click Add Product
- Add Facebook Login and Instagram Graph API
- Under App Review → Permissions, request:
pages_manage_posts
pages_read_engagement
instagram_basic
instagram_content_publish
Note: For testing you can use your own account without App Review approval.
Get Your Page Access Token & Page ID
- Go to developers.facebook.com/tools/explorer
- Select your app from the dropdown
- Click Generate Access Token and log in with Facebook
- Grant the permissions listed above
- Run this in the explorer to get your Page token and ID:
Copy the access_token and id for your Page.
Make it long-lived (60 days) — run this:
GET /oauth/access_token?grant_type=fb_exchange_token&client_id=APP_ID&client_secret=APP_SECRET&fb_exchange_token=SHORT_TOKEN
Get Your Instagram Business Account ID
- Make sure your Instagram is a Business or Creator account
- Link it to your Facebook Page: Instagram → Settings → Linked Accounts
- In Graph Explorer, run:
The id in the response is your Instagram Business ID.
Add Credentials to Your Server
SSH into your VPS and open the env file:
Fill in your values:
META_ACCESS_TOKEN=your_long_lived_page_token
FACEBOOK_PAGE_ID=your_page_id
INSTAGRAM_BUSINESS_ID=your_instagram_business_id
Then restart the scheduler service:
After restarting, refresh this page — all three credentials should show ✓ Configured.
⚠️ Token Renewal Reminder
Long-lived Page tokens last ~60 days. Set a calendar reminder to renew your token before it expires, or use a System User token (never expires) via Meta Business Manager.