⚙️

Setup Required

Some API credentials are missing. Go to Settings to configure your OpenAI and social media API keys before generating posts.

📝
1
Total Posts
📅
0
Posts Today
📘
0
Facebook Published
📸
0
Instagram Published

✨ Generate Today's Post

Use AI to create a fresh mental healing quote, generate a beautiful image, and publish to your social platforms instantly.

⏰ Auto-scheduler is off — enable it in Settings

🔗 Platform Status
🤖 OpenAI (Quote Generation) Not set
📘 Facebook Page Connected
📸 Instagram Business Not set
📊 Quick Stats
🎨 Image Theme Random
🤖 AI Model gpt-4o-mini
Daily Post Time 09:00 UTC
📁 Saved Images 9 files

Loading…

🤖 OpenAI
📘 Facebook
📸 Instagram
Instagram requires a public HTTPS URL to fetch the image.
⏰ Schedule & Post
Enable daily auto-post
Step 1 — Install Python dependencies

Open a terminal in the pgenerator/python/ folder and run:

pip install -r requirements.txt

Installs: openai, Pillow, requests, schedule, python-dotenv

Step 2 — (Optional) Install better fonts

For beautiful typography, download and place fonts in pgenerator/assets/fonts/:

  • PlayfairDisplay-Bold.ttf & PlayfairDisplay-Regular.ttfGoogle Fonts
  • Lora-Bold.ttf & Lora-Regular.ttfGoogle Fonts

The generator will automatically fall back to system fonts (Georgia, Arial) if these are missing.

Step 3 — Get your API keys
🤖 OpenAI

Go to platform.openai.com/api-keys and create an API key.

📘 Facebook Page Access Token
  1. Go to developers.facebook.com and create an app
  2. Add the Pages product
  3. Generate a Page Access Token with pages_manage_posts + pages_read_engagement permissions
  4. Copy your Page ID from your Page settings
📸 Instagram Graph API
  1. Your Instagram must be a Business or Creator account linked to a Facebook Page
  2. In your Facebook App, add Instagram Graph API product
  3. Get your Instagram Business Account ID via the Graph API Explorer
  4. Use the same access token as Facebook (with instagram_basic, instagram_content_publish permissions)
  5. Set a public HTTPS URL for your server in Settings (Instagram must fetch the image from a public URL)
Step 4 — Enable the daily scheduler

To run the scheduler continuously, open a terminal and run:

cd C:\xamppp1\htdocs\pgenerator\python
python scheduler.py

Or run once immediately: python scheduler.py --run-now

On a production Windows server, set up a Task Scheduler job to run scheduler.py at startup.

Step 5 — Test it!

After configuring your API keys in Settings, go to the Dashboard and click Generate & Publish Now to test the full pipeline.