Facebook Pages connector for Claude Code

Use Porter’s Facebook Pages connector for Claude Code to pull posts, Reels and follower growth into your terminal, then turn them into files, scripts and scheduled reports in your own project.

  • Save Facebook post data as CSV in your repo
  • Rank Reels by views
  • Track follower growth week by week
  • Run a weekly Page report from a script
G2★★★★★Rated 4.6/5 from 288 G2 reviews (October 2026) · Used by 1,600+ marketing teams and agencies

By · Last updated November 26, 2026

Claude Codeporter connected
List last month’s posts with Post type and save them to reports/fb-posts.csv
porter / Facebook Pages / Trailgear Demo✓ 4 rows
Saved reports/fb-posts.csv with 4 posts. The trail video reached the most people.
PostPost typeReach
Trail videoVideo12,480
Gear giveawayPhoto8,930
Store hoursStatus2,140
Blog linkLink1,860
Demo data, Trailgear Demo account
270+ Facebook Page fields
01Setup

How to connect Facebook Pages to Claude Code

Connecting Facebook Pages to Claude Code takes 3 steps and no API keys: connect your Facebook Pages in Porter with Facebook, add Porter’s MCP server to Claude Code with one command, then sign in from /mcp and ask. The same server also works in Cursor, VS Code and Codex, as Porter’s Facebook Pages MCP server page shows. Using the Claude app instead? See the Facebook Pages connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and a Facebook profile that manages the Page.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect Facebook Pages in Porter

    Sign up free at Porter, pick Facebook Pages as the source and sign in with Facebook. Tick every Page you want Claude Code to read.

  2. Step 2: Add Porter to Claude Code

    In your terminal, run this command. It adds Porter for every project on your machine; drop --scope user to add it to the current project only.

    Terminal
    claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

    Or, inside Claude Code, install Porter’s plugin, which adds the server and Porter’s skill together: /plugin marketplace add portermetrics/porter, then /plugin install porter-metrics@portermetrics.

  3. Step 3: Sign in and ask

    Start claude, type /mcp, pick porter and sign in with the Google account you use in Porter. When porter shows as connected, paste this prompt:

    Prompt
    Which Facebook Pages can you see? For my Page, list posts published last month with Post Date, Post type and the first 80 characters of Post message, and save them to reports/fb-posts.csv.

Guides and videos

app.portermetrics.com / create
Porter's Facebook Insights authorization showing a connected Facebook profile
First, sign in with Facebook and approve Porter’s access.
Porter's Select accounts window listing the Facebook Pages you can add
Then pick the Facebook Pages Claude can read and save.
$ claude mcp add --transport http --scope user porter https://mcp.portermetrics.com/mcp

$ claude mcp list
porter: https://mcp.portermetrics.com/mcp (HTTP)
Then, add Porter's MCP server from your terminal.
> /mcp
porter · needs authentication → Authenticate

> Which Facebook Pages accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your Facebook Pages accounts.
02Use cases and prompts

What you can do in Claude Code

Claude Code works inside your project, so Facebook Pages answers can become files, scripts and dashboards instead of chat replies. Each use case has a prompt to copy and uses the Facebook Pages fields Porter reads.

Can Claude Code export Facebook Page posts?

The problemMeta Business Suite shows posts one by one, so a content audit means copying numbers.

What Claude Code doesClaude Code pulls Post Date, Post type and post results through Porter and writes them to a CSV in your project.

What you getA full post history in your repo, ready for analysis.

Prompt
For my Facebook Page, list posts published last month with Post Date, Post type, the first 80 characters of Post message and their results, and save them as data/fb-posts.csv.

Which Facebook Reels get the most views?

The problemReels results sit apart from regular posts.

What Claude Code doesClaude Code lists your Reels with Reel creation time, Reel description, Reel length and Reel views and ranks them.

What you getA Reels ranking you can hand to your video team.

Prompt
List my Facebook Reels from the last 60 days with Reel creation time, Reel description, Reel length and Reel views, ranked by Reel views, and save them to reports/fb-reels.csv.

Is my Facebook Page growing?

The problemNew followers alone hide how many people unfollow.

What Claude Code doesClaude Code pulls Page new followers and Page new unfollows by week and calculates net growth.

What you getA weekly growth file that shows real net change.

Prompt
For the last 12 full weeks, show Page new followers and Page new unfollows by Week with net growth, and save it to reports/fb-growth.csv.

Can I schedule a Facebook Page report with Claude Code?

The problemMeta Business Suite shows Page results, but week-over-week follows and unfollows need manual notes.

What Claude Code doesclaude -p runs each Monday and compares posts published, their results, Page new followers and Page new unfollows.

What you getreports/fb-weekly.md with Page growth and the posts behind it.

Prompt
claude -p "Compare last week with the week before for my Facebook Page: posts published, their results, Page new followers and Page new unfollows. Write it to reports/fb-weekly.md" --allowedTools "mcp__porter" "Write"
03Why Porter

Why Porter for Facebook Pages in Claude Code

Porter reads every Facebook Page your profile manages, with no Meta developer app or Page token, and puts Facebook next to Instagram, Meta Ads and 30+ other sources behind the same server.

✓

One server for all your sources

The same porter server answers about Facebook Pages, Meta Ads, Google Ads, GA4 and Shopify, so one script can pull every channel.

⊞

Changes only after you approve

Claude Code can make changes through Porter where the platform allows them, and each change waits for your yes.

⚙

No developer app or Page token

You connect Facebook in Porter and sign in with Google in Claude Code. There is no Meta developer app or token to refresh.

↻

Hosted dashboards when a file isn’t enough

Ask for a Porter AI dashboard and it is published at its own link, synced automatically and ready to share with a client.

04Dashboard

Dashboard template

Porter’s free Facebook Insights dashboard template shows your Page’s followers and views, as well as engagement and top posts, in one report. With the Facebook Insights connector, Claude can build the same view live in chat. If you prefer, open the template and pick your Page.

AI dashboards

Build a live Facebook Insights dashboard from your terminal

Describe the dashboard in one sentence and Porter builds it. A client-ready dashboard in minutes, with no chart dragging and no BI tool to learn. Ask Claude Code:

Prompt
Build a live Facebook Insights dashboard for my account with the last 30 days, the main KPIs and a weekly trend.
Live URLEach dashboard at its own link: no login, no app, no download
Auto-syncFresh Facebook Insights data, nobody re-exports each period
Scheduled deliveryEmail or PDF sends on a set day
White labelYour logo and branding for clients
Sharing permissionsView or edit access per person
Facebook Insights dashboard template by Porter
Template

The Facebook Insights AI dashboard template

Start from a ready-made Facebook Pages layout, or run the prompt above in Claude Code and Porter publishes the dashboard at its own link.

05Pricing

Pricing

You can start free, since Porter’s Facebook Insights connector for Claude comes with every plan. Use the calculator for your number of accounts, or see Porter pricing for every plan.

What you get

  • Free plan: never expires, with unlimited connected accounts and the last 15 days of data in Claude (30 days in Data Studio and Sheets)
  • Reporting: from $12.50 per account a month billed annually, or $15 month to month for one account
  • Billing: each Facebook Page counts as one account, with volume discounts and no per-seat fee
  • Changes: 1 AI credit per completed change; failed tasks are free, and the Free plan includes 100 credits a month
  • Trial: 14 days of full access, no card

Price calculator

$33.33/mo$6.67 per account

An account is one ad account, Stripe account, store, page or GA4 property. The Free plan never expires and has unlimited accounts, with the last 15 days of data in AI chats.

06Data and actions

Facebook Insights data and actions in Claude Code

The Facebook Insights connector gives Claude 270+ Page fields across the Page, posts, Reels and videos, plus 19 actions to read, publish, reply and moderate. The fields cover followers, views and viewers, as well as Page views, engagement, reactions, comments, shares and video watch time. The full list of Facebook Insights fields has every one, including its label and ID.

12 Facebook Insights fields Claude uses most

FieldWhat it's for
Page total followersfollowsToday's follower count; a snapshot, never summed
Page new followers · Page new unfollowspage_daily_follows · page_daily_unfollowsNet follower growth by week
Page total impressionspage_impressionsPage views as Business Suite counts them ("Views")
Total reachpage_impressions_uniquePeople who saw the Page ("Viewers"), by day, week or 28 days
Page viewspage_views_totalVisits to the Page itself
Page Engagementspage_post_engagementsEngagement across the Page
Post engagements · Post reactions · Post Comments Count · Post shares · Post Clicksengagement_by_post · post_reactions_by_type_total · post_comments_count · post_share · post_clicksRanking posts
Total impressions of postspost_impressionsViews per post
Reel views · Reel post video avg time watchedreel_default_views · reel_post_video_avg_time_watchedReels reach and attention
Page video views · Post average time video viewedpage_video_views · post_video_avg_time_watchedVideo reach and attention
Post actions: Anger · Post actions: Love · Post actions: Likepost_actions_post_reactions_anger_total · post_actions_post_reactions_love_total · post_actions_post_reactions_like_totalHow people feel about a post
First 10 Post Commentspost_comments_10What people say

Can the connector let Claude post, schedule or reply on Facebook?

Yes. Claude gets both Page analytics and posting and moderation. Claude publishes text, link and photo posts either now or on a schedule. It also edits, hides or deletes posts, and uploads photos and videos.

On comments, Claude replies as your Page, hides, unhides or deletes comments and edits the Page's own comments. It also answers inbox messages, while Reels, Stories, boosts and Page settings stay in Business Suite as usual.

Is Facebook Insights still around, and what did Meta retire?

Yes. Page Insights still shows on Facebook, as the Facebook Help Center guide to Page Insights describes. But Meta retired dozens of Page metrics in four rounds between March 2024 and November 2025.

Page likes became followers, while impressions became views. Engaged users, fans online and organic vs paid splits were removed, according to Meta's deprecated Page Insights metrics.

How fresh is Facebook Insights data in Claude, and how far back?

Porter refreshes Page data daily. Meta's Page Insights limits say most metrics update once every 24 hours, so the latest day in Claude is partial. Meta keeps the last two years of Page metrics, and Porter's daily follower totals start in October 2024.

Product stats

WhatFacebook Insights connector
Fields270+ across the Page, posts, Reels and videos
Actions19 to read, publish, schedule, reply and moderate, each after you approve
FreshnessRefreshed daily; Meta updates most metrics once every 24 hours, so the latest day is partial
HistoryThe last two years of Page metrics; daily follower totals from October 2024; the last 15 days in Claude on the Free plan (30 days in Data Studio and Sheets)
Follower historyFacebook's API gives only the current total; Porter stores total and new followers day by day on paid plans, from the day you start paying
ViewersBy day, week or 28 days, as Meta reports them
AccessA Facebook profile that manages the Page; Pages with 100+ likes get insights

See all 270+ Facebook Insights fields

07Security

Is it safe?

Yes. Claude shows you every reply, post or inbox message before the Facebook Insights connector sends it from your Page. Nothing goes out until you confirm. Porter also works only on Pages your Facebook profile manages, with the permissions you grant at sign-in. Reading data leaves the Page exactly as you set it, so reports and questions publish nothing.

How changes get approved

Published posts, comments and inbox replies are permanent, so Claude asks before each one, and you can still delete or hide posts and comments.

Meta's 24-hour messaging window limits inbox replies to 24 hours after the person's message. Each completed change also uses one AI credit.

What the Claude connector needs from Facebook

Porter needs a Facebook sign-in from a profile that manages the Page. Reports use read_insights and pages_read_engagement. Publishing, comments and the inbox also need pages_manage_posts, pages_manage_engagement and pages_messaging, as Meta's permissions reference lists.

If a permission is missing, Claude returns a reconnect link. In that case, reconnect the Page in Porter and accept every permission.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with Facebook Pages. Setup questions every source shares, like where Claude Code saves the server and how to share it with your team, are in the Claude Code hub FAQ.

Can I add Instagram to the Facebook Page report?

Yes. Connect Instagram in Porter and ask for Profile new followers next to Page new followers. Claude Code writes both accounts to the same weekly file.

Is this the same as the Meta Ads connector?

No. This connector reads organic Page posts, Reels and followers. Paid campaigns come from the Meta Ads connector, and Claude Code can use both through the same server.

Do Claude Code questions use Porter credits?

Reading Facebook Pages data uses no AI credits. Each completed change, such as a change, uses 1 credit, and every Porter account gets 100 free credits a month.

Troubleshooting

Why does /mcp show porter as needing authentication?

Claude Code adds the server before you sign in. Pick porter in /mcp, choose Authenticate and sign in with the Google account you use in Porter.

Why does my claude -p script stop and ask for permission?

Scripts can’t answer permission prompts. Pass the tools the script may use, for example --allowedTools "mcp__porter" "Write", so Claude Code can read Porter and save files without stopping.

Why does Claude Code see my Page but return no data?

Usually the Facebook profile no longer manages that Page, or no posts were published in the range. Reconnect Facebook in Porter and ask with a wider range.

09Next

More Claude connectors

Besides the Facebook Insights connector, Porter connects Claude to other social and web sources, each with its own prompts, fields and limits. Start with these, pick from all Claude connectors, or browse Porter's MCP servers for marketing data so other AI clients can use the same sources.

Not only Claude. Send Facebook Insights data anywhere

The same Porter account and connection also send Facebook Insights data to these destinations, at no extra cost.

Try the connector in Claude Code

Porter’s Facebook Pages connector for Claude Code takes one command, so your first post report can land in your project today.

Free plan · 14-day trial · No card needed

Social media managers: posts, Reels and growth come out of the terminal as files.

Content marketers: your own numbers decide which formats get made next.

Agencies: one script builds the weekly report for every client Page.