# Schedule Facebook Pages posts with OpenAI API

> If you're building your own agent on the OpenAI API, you can hand it Tesselith's tools without writing an MCP client. The Responses API calls Tesselith's MCP server for you, so your code only passes the tool along. This suits a product of your own that drafts Facebook Page posts for your users, with the rules living in your code.

Canonical: https://tesselith.com/ai-agents/openai-api/facebook

## Drafting tool for a newsletter company's editors

A small newsletter company builds an internal app where editors paste a story and pick a Page. The app calls the Responses API with Tesselith's hosted MCP tool and asks the model for a Page post in the house style. The model creates a draft through create_draft, and the editor opens the draft in Tesselith before anything is queued.

## Back-office agent for a tour operator

A tour operator runs one Facebook Page per destination and gets trip photos from guides every week. Their internal agent receives each photo's public URL and the trip notes, calls upload_media_from_url, and drafts a post for the right destination. The agent runs on the company's own backend, so a staff member approves each batch before anything gets a time.

## Nightly drafts for a music venue

A venue's booking system knows the date of every show. A nightly script on the OpenAI API lists the next week's shows, drafts one Facebook post per show with the doors time and ticket link, and saves each as a draft on the venue's Page. Staff look over the drafts each morning and queue the ones they like with add_to_queue.

## Prompts to try

- "Write a Facebook Page post for our Saturday tasting, under 300 characters, with the reservation link at the end."
- "Draft three Page posts from this trip itinerary, one per day, each with the photo from the URL I pasted."
- "Create a draft for the Riverside venue's Facebook Page for the Friday show, doors at 7pm."
- "Check what's queued on my Facebook Page for next week and suggest where a new post fits."
- "Schedule the approved drafts into the Page's free slots and list the times you chose."

## Tips

- Put the platform rule in your system prompt. Facebook posts can run long, but only about 480 characters show before 'See more'. Say so in the instructions, so the model leads with the point.
- Keep the model on drafts by default. Have it create drafts, and let a person trigger schedule_post or add_to_queue after review. Publishing and deleting already need an explicit confirm flag, so mirror that split in your app.
- Send photos as public URLs. upload_media_from_url only attaches media from a public address. A private file store or a link that expires can fail partway through a batch.
- Log every tool call your app receives. When a Page post looks wrong, the call history shows whether the model wrote it badly or pointed it at the wrong channel. That's faster than guessing from the final text.

## Questions people ask

### Do I need a special MCP client to use Tesselith here?

No. The Responses API calls Tesselith's MCP server on your behalf, so your code only passes the server details and your Tesselith API key.

### Is an OpenAI API key enough to connect?

No. You need an OpenAI API key for the model, a Tesselith API key, and a plan that includes API access.

### What happens if the model tries to publish right away?

Publishing takes a confirm flag. Set it only after a person agrees, and build the step where they agree into your app.

---
Tesselith · https://tesselith.com · Full site index: https://tesselith.com/llms.txt
