App-level secrets and legacy .env platform credentials. For normal platform posting, use Connected Accounts below.
Connected Accounts is where platform tokens are managed.
Telegram, Facebook, Instagram, and Threads accounts are stored per-business in the database — not in .env.
Two-tier credential system: Connected Accounts (database) — the primary method. Each platform account is saved per-business with an encrypted token. Use the Connected Accounts page to add or update tokens.
Legacy .env keys (this page) — fallback only. If a Connected Account exists for a platform, these .env keys are ignored for posting. They are still read by the legacy api/social_test.php endpoint used by the Test buttons below.
App-Level Secrets (Coolify / .env)
TOKEN_ENCRYPTION_KEYEncrypts all stored platform tokens at rest (AES-256). Required before saving accounts in Connected Accounts.
✓ Set
CRON_SECRETProtects the token-refresh and migration endpoints. Defaults to a hardcoded value if not set — set a unique secret in Coolify.
✓ Set
FACEBOOK_APP_IDRequired for OAuth login flow (future phase). Not needed for manual token paste in Connected Accounts.
— Not set
FACEBOOK_APP_SECRETRequired for OAuth login flow (future phase).
— Not set
FACEBOOK_API_VERSIONOptional — defaults to v19.0 if not set.
— Not set
Legacy .env Platform Credentials
✈
Telegram
Live
.env not set
Legacy fallback.
If this platform is already connected via Connected Accounts, these .env keys are not required for posting.
Telegram connected accounts are fully operational — you do not need to set TELEGRAM_BOT_TOKEN here.
TELEGRAM_BOT_TOKEN
not set✗
TELEGRAM_CHAT_ID
not set✗
1. Open Telegram and search for @BotFather.
2. Send /newbot, follow prompts, copy the Bot Token (looks like 123456:ABCdef…).
3. Add the bot as Admin to your channel or group.
4. Chat ID: use your public channel username (e.g. @mychannel) or the numeric ID of a private group (e.g. -1001234567890).
5. To find a private group ID: forward any message from the group to @userinfobot.
𝐟
Facebook Page
Live
.env not set
Legacy fallback.
If this platform is already connected via Connected Accounts, these .env keys are not required for posting.