Templates / Connect apps / Facebook + PostgreSQL
Connect Facebook to PostgreSQL with n8n
13 public n8n templates use both Facebook and PostgreSQL. We checked each one against the n8n 3.0 breaking changes: 11 ready, 2 need changes, 0 unknown (community nodes we can’t verify). Data from the 30 November 2026 library snapshot.
Together these templates have 108,856 views on n8n.io. The most viewed is Generate Instagram content from top trends with AI image generation (89,330 views, ready for 3.0). 5 of them call Facebook through the HTTP Request node instead of a dedicated node. Other apps these templates often use: OpenAI (8), Google Drive (6), Google Gemini (4), OpenRouter (4), LinkedIn (3), Supabase (3).
What needs fixing for n8n 3.0 in this group: AI Agent v1 (old agent modes) (2 templates).
How to connect Facebook to PostgreSQL in n8n
- Start from a template instead of a blank canvas. The most viewed one that passes our n8n 3.0 check is Generate Instagram content from top trends with AI image generation.
- Pick how it starts. Most of these workflows start with Schedule Trigger (6 templates), Google Drive Trigger (3 templates), Manual Trigger (3 templates). 1 template here start from a Facebook trigger node, so they run when something changes in Facebook.
- Add your own credentials. Templates never include credentials, so open each Facebook and PostgreSQL node and connect your accounts. In this group, for Facebook 8 of 13 use n8n’s built-in Facebook node, the rest call its API with the HTTP Request node; for PostgreSQL, all of them use n8n’s built-in PostgreSQL node.
- Run it once with test data, then turn it on. Before upgrading to n8n 3.0, paste your version into the 3.0 checker.
Facebook + PostgreSQL templates
- Ready for 3.0 Generate Instagram content from top trends with AI image generation · 89,330 views
- Needs changes 💅 AI Agents Generate Content & Automate Posting for Beauty Salon Social Media 📲 · 12,434 views
Fix: AI Agent v1 (old agent modes) - Needs changes Multi-platform AI sales agent with RAG, CRM logging & appointment booking · 5,939 views
Fix: AI Agent v1 (old agent modes) - Ready for 3.0 Generate social media posts with GPT-4 for LinkedIn, X, and Facebook · 623 views
- Ready for 3.0 Send Shopify shipping tracking WhatsApp notifications with full tracking info · 252 views
- Ready for 3.0 Qualify and score real estate leads via WhatsApp, Google Gemini, and PostgreSQL · 134 views
- Ready for 3.0 Reply to Facebook comments with OpenRouter, Supabase, Postgres and Google Drive · 37 views
- Ready for 3.0 Qualify and route dental leads with GPT-4, GoHighLevel, Twilio, and Meta Ads · 36 views
- Ready for 3.0 Manage coupon campaigns and customer chats with WhatsApp and PostgreSQL · 25 views
- Ready for 3.0 Sell clothing on Facebook Messenger with Gemini, Stripe, and an admin app · 21 views
- Ready for 3.0 Cross-post RSS feed articles to X, LinkedIn and Facebook with PostgreSQL · 12 views
- Ready for 3.0 Run a RAG Messenger chatbot with Facebook, Google Drive, Supabase, OpenAI and OpenRouter · 7 views
- Ready for 3.0 Reply to Facebook comments using RAG with Google Drive, Supabase, OpenAI and Postgres · 6 views
Check your own Facebook → PostgreSQL workflow or see all Facebook templates and all PostgreSQL templates
Other Facebook pairs
- Facebook + Google Sheets (127)
- OpenAI + Facebook (107)
- Facebook + Google Gemini (48)
- Facebook + Slack (47)
- Gmail + Facebook (43)
- Telegram + Facebook (41)
- Google Drive + Facebook (40)
- Facebook + LinkedIn (37)
Other PostgreSQL pairs
- OpenAI + PostgreSQL (191)
- PostgreSQL + Slack (109)
- Gmail + PostgreSQL (82)
- Google Sheets + PostgreSQL (71)
- Telegram + PostgreSQL (70)
- Google Drive + PostgreSQL (65)
- Supabase + PostgreSQL (60)
- Google Gemini + PostgreSQL (47)
FAQ
Is there an n8n template to connect Facebook to PostgreSQL?
Yes. 13 public n8n templates use both Facebook and PostgreSQL. The most viewed is “Generate Instagram content from top trends with AI image generation” with 89,330 views.
Do the Facebook and PostgreSQL n8n templates work in n8n 3.0?
By our static check, 11 are ready for n8n 3.0, 2 need changes and 0 are unknown because they use community nodes we can’t verify. The most common fix: AI Agent v1 (old agent modes).
Does n8n have a built-in Facebook node?
Yes, 8 of 13 templates here use n8n’s built-in Facebook node.
Static check of the workflow JSON, not a live run on n8n 3.0. Apps are detected from the nodes in each workflow and from well-known API addresses in HTTP Request nodes. All app pairs.
Tools we use or recommend
- Make: Visual automation platform; a good alternative when an n8n flow needs a rebuild. Free plan available.
- Firecrawl: Turns any website into clean, LLM-ready data; simpler than hand-rolled scraping. New users get 10% off their first purchase.
Affiliate links: we may earn a commission at no cost to you.