Convert Facebook posts to Markdown
Turn a public Facebook URL into clean, portable Markdown for LLMs, notes, research, and archives. This guide follows the same domain-swap workflow as the X guide, adapted for Facebook.
Want to test the form first? Use the Facebook converter or start from the all-platform preview.
Why use AnyPost for Facebook?
Public posts and page updates with guest-visible comments. Instead of pasting a live URL and hoping an AI tool can read it, AnyPost returns the post as a stable Markdown document with attribution.
| Approach | What you get |
|---|---|
| Paste the original link | Preview cards, login walls, or incomplete context |
| anypost.md | Clean Markdown with source URL and platform context |
01: Cleaner context
Markdown removes navigation, overlays, embeds, and tracking parameters so models see the post content first.
02: Better archives
The output is plain text, easy to diff, store in Obsidian, add to a CMS, or keep in a research folder.
03: Predictable automation
The browser URL swap and the JSON API share the same conversion pipeline, so scripts and manual workflows produce the same style of output.
Step-by-step workflow
01: Copy the Facebook URL
Use the public permalink for the post, article, story, video, pin, or thread you want to preserve.
02: Swap the domain to anypost.md
Open the AnyPost URL in your browser. The platform prefix keeps routing explicit.
Before: https://facebook.com/NASAPersevere/posts/708313158516353/
After: https://anypost.md/facebook/NASAPersevere/posts/708313158516353/
03: Add paid options when needed
Facebook requires Pro, Scale, or Agency plus an apk_ key because it is a Pro-tier source with higher fetch cost.
04: Copy the Markdown output
Use the result in a prompt, archive, markdown editor, CMS, or API workflow.
What you get
- Public page and profile posts as clean Markdown
- Link previews, images, and reaction counts when visible
- Guest-visible comments when Comments is on
- facebook.com/…/posts/… and permalink.php URLs supported
# Example Facebook post
Clean post text appears here, with line breaks preserved and noisy page chrome removed.
- Source platform: Facebook
- Original URL: https://facebook.com/NASAPersevere/posts/708313158516353/
- Markdown URL: https://anypost.md/facebook/NASAPersevere/posts/708313158516353/
---
2026-06-01 · Facebook · [Original post](https://facebook.com/NASAPersevere/posts/708313158516353/)
Good for
- Feeding exact Facebook context into ChatGPT, Claude, Gemini, Cursor, or another AI assistant.
- Saving source posts in Obsidian, Notion, a research database, or a static-site content folder.
- Quoting public posts with the original URL and platform timestamp kept together.
- Building lightweight review, monitoring, or archive scripts around a stable Markdown response.
For agents: fetch Markdown, not web pages
Give AnyPost to OpenClaw, Codex, Cursor agents, Claude Code, and RAG workers as their Facebook fetch layer. Instead of driving the original site, the agent should rewrite the URL to anypost.md or call /api/convert, then read the clean Markdown response.
That keeps agents out of brittle DOM scraping, rate-limit loops, login walls, and browser automation noise.
Agent setup
- Install the anypost-md skill, or give your agent the raw SKILL.md.
- Store an
apk_key from Login for Agents and send it asAuthorization: Bearer apk_live_xxxfor paid options. - Use the domain-swap URL when the agent wants a plain Markdown document; use
/api/convertwhen it needs JSON fields such asmarkdown,credits, or structured errors.
Original: https://facebook.com/NASAPersevere/posts/708313158516353/
Agent: https://anypost.md/facebook/NASAPersevere/posts/708313158516353/
Paid options and API usage
Facebook is Pro+ only. After buying credits, Login with Google to redeem checkout, create an apk_ key, and pass it with the conversion request:
curl -sS -H "Authorization: Bearer apk_live_xxx" \
"https://anypost.md/facebook/NASAPersevere/posts/708313158516353/"
When your app needs JSON fields such as markdown, credits, or structured errors, call /api/convert with the original URL:
curl -sS -H "Authorization: Bearer apk_live_xxx" \
"https://anypost.md/api/convert?url=https%3A%2F%2Ffacebook.com%2FNASAPersevere%2Fposts%2F708313158516353%2F"
| Entry point | Response | Best for |
|---|---|---|
/facebook/... domain swap | text/plain Markdown | Browser, curl pipes, agents that want a document |
/api/convert?url=... | JSON with markdown | Apps that need metadata and structured errors |
See Documentation for query parameters, credit costs, and authentication.
Facebook FAQ
Which Facebook URLs work?
Public post URLs under facebook.com/…/posts/… or permalink.php, swap the host for anypost.md. Pro, Scale, or Agency plan and an API key required.
Can I include Facebook comments?
Yes. Turn on Comments to fetch guest-visible replies from the public page. Each comment adds 1 credit.
Is Facebook available on the free tier?
No. Facebook requires Pro, Scale, or Agency plus an apk_ key. Starter covers X tweets, Reddit, Bluesky, Mastodon, Hacker News, YouTube, and Medium.
Can agents use AnyPost instead of scraping Facebook?
Yes. Give OpenClaw, Codex, Cursor agents, Claude Code, or your RAG worker the anypost-md skill at /i/skill.md and an apk_ key from Login for Agents. The agent should call AnyPost for Facebook URLs and read Markdown instead of scraping the original page, which avoids brittle selectors, rate limits, and login walls.
Next
- Try the Facebook converter with a real URL.
- Convert any post to Markdown, the multi-platform overview.
- Feed context to AI models, prompt patterns for using Markdown output.
- Archive posts into Obsidian, frontmatter and vault organization.