Apply the Supabase migration
Run migrations/66_social_engine_foundation.sql against your Supabase project. It creates the social_accounts, social_posts, social_post_targets, social_metrics, and social_attribution tables plus indexes and RLS policies.
supabase db push migrations/66_social_engine_foundation.sql
Or paste the SQL directly into the Supabase SQL editor.
Deploy the edge functions
Three Deno-based edge functions handle publishing, metrics, and attribution:
social-publisher— posts to FB/IG/LinkedIn/TikToksocial-metrics-pull— daily snapshot of impressions/clicks per postsocial-attribute-signup— links inbound signups to UTM campaign
Deploy via:
supabase functions deploy social-publisher supabase functions deploy social-metrics-pull supabase functions deploy social-attribute-signup
Set the SOCIAL_TEST_MODE secret to TRUE initially — the publisher logs only and never posts until that flag is flipped.
Connect at least one network
Insert a row into social_accounts with the platform handle, OAuth tokens, and publish_enabled = true. The Overview tab pulls connection state from this table.
Import the content calendar
The starter calendar (03-CONTENT-CALENDAR.csv) has 60+ pre-written posts across EN/DE/ES/FR/IT/PT. Use the Import CSV button on the Overview tab to load them as drafts, then schedule from Calendar.
What's in this kit
All 23 files from the v1.0 starter kit are checked into /tools/socialmedia/setup/ and reachable below:
Status
Until Step 1–3 are done, the Overview / Calendar / Compose / Analytics tabs will load the UI but report missing config or empty data.