A Facebook autoposting system on AWS for $2–$5 a month
You run a Facebook page. You want it to post on a schedule, stay on‑topic, answer questions correctly, and not surprise you with a huge cloud bill. Here’s how to build that.
The whole system on one page
Before any code, here’s the shape of what we’re building.
What you and your client touch (the outside)
- Your code on GitHub — where the project lives.
- A Google Drive folder — where the client edits content (FAQs, pricing, promos, brand rules).
- The Facebook page — what the world sees.
What runs quietly in the cloud (the inside)
- The posting robot — wakes up on schedule, picks the next post, checks it, posts it.
- The reply robot — wakes up when someone messages, looks up the answer, replies.
- The shared brain — a copy of the Drive folder, kept in sync, that both robots read from.
In plain words
You write the rules in code. Your client writes the content in Drive. Two small robots — one for posting, one for replying — do the work in the background. They both share the same brain so they never contradict each other.
Total cost runs a few dollars a month, not a few hundred.
Design rules that shaped every decision
- Stay inside the AWS always-free service quotas wherever possible.
- No NAT Gateway. No API Gateway. No always-on compute. No infinite log retention.
- No long-lived credentials in GitHub.
- The client’s editing surface is Google Drive — they don’t learn a new tool.
- Replies must cite a knowledge-base entry or refuse to answer. No hallucinated prices, no invented promises.
Why this shape
Most “autoposting” systems collapse under one of three weights: a server bill that climbs every month, a content-management workflow no one outside the dev team can use, or a chatbot that confidently invents answers.
The architecture above is the smallest set of moving parts I could find that solves all three at once. Three external surfaces, two small robots, one shared brain. Everything else is plumbing.
All posts