[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Facebook page posts](https://spiral.ai/integrations/opencode/facebook-page-posts)

# How to Use Facebook page posts in opencode

Fetch public Facebook page posts with text, source links, publication times, and available reaction and comment counts. Use it to review a page's content, three posts at a time, with pagination for more results.

|  |  |
| --- | --- |
| Model | Facebook page posts |
| Available through | ScrapeCreators |
| Category | Social Media |
| Price | Up to $0.0013 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Facebook page posts in opencode

- Use Facebook page posts for https://www.facebook.com/NASA/ to fetch up to 12 posts and add a content table to this project with text, publication time, post link, reactions, and comments.
- Use Facebook page posts for https://www.facebook.com/nike/ and https://www.facebook.com/adidas/ to collect up to nine posts each and create a comparison report in this project, ranked by available reaction counts.
- Use Facebook page posts for https://www.facebook.com/Meta/ to collect up to 12 posts and generate a JSON file containing post IDs, text, source URLs, and available publication timestamps.
- Use Facebook page posts for https://www.facebook.com/NASA/ to collect up to 15 posts and build a view in this project showing posts with available video details, thumbnails, and view counts.
- Use Facebook page posts for https://www.facebook.com/Meta/ to fetch up to 12 posts and add a shared-link reading list to this project using available destination URLs, titles, and descriptions.

## How to set up Facebook page posts in opencode

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Facebook page posts**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "scrapecreators",
    "model": "scrapecreators/facebook-profile-posts",
    "input": {
      "url": "https://www.facebook.com/pacemorby"
    }
  }'
```

Then paste one of the prompts above: opencode finds Facebook page posts on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Facebook page posts tools and prices

- [Facebook · Profile Posts](https://spiral.ai/tools/scrapecreators/scrapecreators/facebook-profile-posts) (ScrapeCreators): Up to $0.0013 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | Facebook profile URL |
| cursor |  | — | To paginate through the posts |
| pageId |  | — | Facebook profile page id |

## What can you do with Facebook page posts in opencode?

Build a Facebook content review table with post text, publication times, source links, and available reaction and comment counts. A coding agent can add cursor pagination and keep reports scoped to the posts retrieved.

### Competitor content comparison

Compare the themes, captions, and available reaction and comment counts in returned Nike and adidas posts. Identify differences in the sampled content without treating the feed as a complete posting history.

### Public announcement digest

Turn returned NASA posts into a brief of mission updates and announcements, with publication times and links back to the original posts.

### Campaign message review

Review returned posts from a brand page for campaign phrases and product mentions. Present matching text alongside source links and available engagement counts.

### Shared article reading list

Extract available destination URLs, titles, and descriptions from a publisher's link-share posts to create a reading list tied to the original Facebook posts.

### Post engagement shortlist

Rank collected posts by available reaction or comment counts to choose examples for a content review. Keep the ranking limited to the posts actually retrieved.

### Video content inventory

List returned posts that contain video details, retaining captions, post links, available video URLs, thumbnails, and view counts for editorial review.

## Overview

- [ScrapeCreators](https://spiral.ai/providers/scrapecreators)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Facebook page posts in other agents

- [Amp](https://spiral.ai/integrations/amp/facebook-page-posts)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/facebook-page-posts)
- [Claude](https://spiral.ai/integrations/claude-desktop/facebook-page-posts)
- [Claude Code](https://spiral.ai/integrations/claude-code/facebook-page-posts)
- [Cline](https://spiral.ai/integrations/cline/facebook-page-posts)
- [Codex](https://spiral.ai/integrations/codex/facebook-page-posts)
- [Cursor](https://spiral.ai/integrations/cursor/facebook-page-posts)
- [Devin](https://spiral.ai/integrations/devin/facebook-page-posts)
- [dots](https://spiral.ai/integrations/dots/facebook-page-posts)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/facebook-page-posts)
- [Gemini](https://spiral.ai/integrations/gemini/facebook-page-posts)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/facebook-page-posts)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/facebook-page-posts)
- [goose](https://spiral.ai/integrations/goose/facebook-page-posts)
- [Grok](https://spiral.ai/integrations/grok/facebook-page-posts)
- [Grok Build](https://spiral.ai/integrations/grok-build/facebook-page-posts)
- [Hermes](https://spiral.ai/integrations/hermes/facebook-page-posts)
- [Instinct](https://spiral.ai/integrations/instinct/facebook-page-posts)
- [Manus](https://spiral.ai/integrations/manus/facebook-page-posts)
- [Muse](https://spiral.ai/integrations/muse/facebook-page-posts)
- [Muse Code](https://spiral.ai/integrations/muse-code/facebook-page-posts)
- [n8n](https://spiral.ai/integrations/n8n/facebook-page-posts)
- [Notion](https://spiral.ai/integrations/notion/facebook-page-posts)
- [OpenClaw](https://spiral.ai/integrations/openclaw/facebook-page-posts)
- [Perplexity](https://spiral.ai/integrations/perplexity/facebook-page-posts)
- [Raycast](https://spiral.ai/integrations/raycast/facebook-page-posts)
- [VS Code](https://spiral.ai/integrations/vscode/facebook-page-posts)
- [Windsurf](https://spiral.ai/integrations/windsurf/facebook-page-posts)
- [Zapier](https://spiral.ai/integrations/zapier/facebook-page-posts)

## More opencode guides

- [Facebook page events](https://spiral.ai/integrations/opencode/facebook-page-events)
- [Facebook page reels](https://spiral.ai/integrations/opencode/facebook-page-reels)
- [Facebook group posts](https://spiral.ai/integrations/opencode/facebook-group-posts)
- [Facebook post comments](https://spiral.ai/integrations/opencode/facebook-post-comments)
- [Facebook group details](https://spiral.ai/integrations/opencode/facebook-group-details)
- [Facebook video and post details](https://spiral.ai/integrations/opencode/facebook-video-and-post-details)

## Questions about Facebook page posts in opencode

**Can opencode use Facebook page posts?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Facebook page posts like any built-in tool.

**How much does Facebook page posts cost in opencode?**

Up to $0.0013 per run. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a ScrapeCreators account to use Facebook page posts in opencode?**

No. Spiral runs Facebook page posts on its own ScrapeCreators account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Facebook page posts in opencode?**

About two minutes: add the server, then sign in, then check it.

**Does opencode wait while Facebook page posts runs?**

Facebook page posts runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Which Facebook posts are covered?**

Coverage is limited to posts visible without logging into Facebook. A post that requires login falls outside this endpoint's stated coverage.

**How many posts does one request return?**

The documented limit is three posts per page. Use the returned cursor to request additional pages.

**How fresh are the Facebook results?**

ScrapeCreators says it fetches the latest available Facebook information when you make a request. That describes request-time retrieval, rather than a daily or weekly data release.

**Can I retrieve a complete posting history?**

A complete chronological archive is not guaranteed. The provider warns that Facebook feeds can rank or omit posts, so pagination does not prove that every historical post was collected.

**What does a shared link include?**

When Facebook exposes a link preview, the response can include the destination URL, title, description, source, and preview image URL.

