Facebook Public Data connector for Claude Code

Use Porter’s Facebook Public Data connector for Claude Code to pull any public Facebook Page’s profile and posts into your terminal, then turn them into competitor files and scheduled reports in your own project.

  • Save competitor Page stats as CSV in your repo
  • Pull a rival’s posts from the last 90 days
  • Compare up to five Pages side by side
  • Run a weekly competitor 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
Compare these 4 outdoor brand Pages and save their profiles to reports/fb-rivals.csv
porter / Facebook Public Data / Trailgear Demo✓ 4 rows
Saved reports/fb-rivals.csv. Peak Outfitters has the largest audience; Ridge Co posts the least.
PageCategoryVerified
Peak OutfittersOutdoor storeYes
Trailhead SupplySporting goodsYes
Summit GearOutdoor storeNo
Ridge CoBrandNo
Demo data, Trailgear Demo account
156 Facebook Public Data fields
01Setup

How to connect Facebook Public Data to Claude Code

Connecting Facebook Public Data to Claude Code takes 3 steps and no API keys: connect your competitor Pages in Porter with any Facebook account, 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 Public Data MCP server page shows. Using the Claude app instead? See the Facebook Public Data connector for Claude.

Before you start

  • You need Claude Code installed (Anthropic’s Claude Code overview), a free Porter account and any Facebook account, which only signs Porter in to Meta, plus the Page names or URLs you want to track.
  • Works with any Claude model in Claude Code, from Opus to Sonnet and Haiku.
  1. Step 1: Connect Facebook Public Data in Porter

    Sign up free at Porter, pick Facebook Public Data as the source and sign in with any Facebook account. 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
    For these Facebook Pages: {Page 1}, {Page 2}, {Page 3}, show Page Profile Name, Page Category and Page Verification Status, and save them to reports/fb-rivals.csv.

Guides and videos

app.portermetrics.com / create
Porter's Connect a new data source list with Facebook Public Data ready to connect
First, find Facebook Public Data in Porter and select Connect.
Porter's Select accounts window for Facebook Public Data with a demo user
Then sign in with Facebook, pick the profile 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 Public Data accounts can you see?
● porter - list_accounts (MCP)
Trailgear Demo
After you sign in from /mcp, Claude Code lists your Facebook Public Data accounts.
02Use cases and prompts

What you can do in Claude Code

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

Can Claude Code export competitor Facebook Pages?

The problemCompetitor research means opening each Page and copying numbers by hand.

What Claude Code doesClaude Code pulls Page Profile Name, Page Category and Page Verification Status for the Pages you name and writes them to a CSV.

What you getOne competitor file you can update every month.

Prompt
For these Facebook Pages: {Page 1}, {Page 2}, {Page 3}, {Page 4}, {Page 5}, show Page Profile Name, Page Category and Page Verification Status, and save them as data/fb-rivals.csv.

What has my competitor posted on Facebook?

The problemScrolling a rival’s Page doesn’t show patterns in what they post.

What Claude Code doesClaude Code lists the Page’s posts with Post Creation Date, Post Content type and the post text, then groups them by type.

What you getA post log you can scan for themes and offers.

Prompt
For {Competitor Page}, list posts created in the last 90 days with Post Creation Date, Post Content type and the first 80 characters of Post Message, group them by Post Content type and save it to reports/fb-rival-posts.csv.

Can I schedule a competitor report with Claude Code?

The problemTracking what competitors post means visiting their Pages one by one every week.

What Claude Code doesA scheduled claude -p run lists the last 7 days of posts for the Pages you name, with Post Creation Date, Post Content type and the start of Post Message, and sums up what each brand pushed.

What you getA weekly competitor brief in reports/ you can share with the team.

Prompt
claude -p "For {Page 1}, {Page 2} and {Page 3}, list posts from the last 7 days with Post Creation Date, Post Content type and the first 80 characters of Post Message, and summarize what each brand pushed. Write it to reports/fb-rivals-weekly.md" --allowedTools "mcp__porter" "Write"
03Why Porter

Why Porter for Facebook Public Data in Claude Code

Porter reads public Facebook Page data with any Facebook login, so you can track competitors without being an admin of their Pages, and puts it next to your own Facebook, Instagram and Meta Ads data behind the same server.

✓

One server for all your sources

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

⊞

Nothing changes on their Pages

Porter reads only public Page data here, so the Pages you track never see a visit, a post or a change from you.

⚙

Any Page, no admin role

You only need any Facebook account to sign Porter in to Meta. The Pages you track don’t need to give you access.

↻

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 competitor dashboard template puts rival Pages and their top posts in one view, in the same way Claude builds it live. Either open the template and pick your rival Pages, or just ask Claude in chat.

AI dashboards

Build a live Facebook Public Data 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 Public Data 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 Public Data 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 Public Data dashboard template by Porter
Template

The Facebook Public Data AI dashboard template

Start from Porter’s official Facebook Public Data dashboard template, 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 Public Data 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 competitor Page you track counts as one account, with volume discounts and no per-seat fee
  • No credits needed: Claude’s Facebook Public Data questions are reads, so they use no AI credits
  • 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

Public Facebook data Claude can use

The Facebook Public Data connector gives Claude 156 fields on rival Pages, as well as Page search by name. Page fields include followers, people talking about it, ratings, check-ins and category, while post fields cover message, format, date, reactions, comments, shares and engagements. If you need more, see all 156 fields.

The 12 Facebook data fields Claude uses most

FieldWhat it's for
Page Followerspage_followersToday's audience; compare Pages
Page Talking About Counttalking_about_countPeople talking about the Page this week
Page Rating Count · Page Checkinsrating_count · checkinsLocal and retail rivals
Page Profile Name · Page Category · Page Verification Statusprofile_name · category · verification_statusLabel and group Pages
Post Message · Post Creation Date · Post Content type · Link to Postmessage · created_date · content_type · link_to_postWhat was posted, when and in which format
Post engagementspost_engagementsReactions, comments and shares together
Post Reactions Count · Post Comments · Post Shares Countreactions_count · comments · shares_countRanking posts
Post Reactions Love · Post Reactions Angryreactions_love · reactions_angryReaction mix
Posts count · Day of week (Mon - Sun) · Hour of dayposts_count · day_of_week · hourWhen rivals post
Likes per post (Posts) · Comments per post (Posts) · Shares per post (Posts)likes_per_post · comments_per_post · shares_per_postComparing Pages that post at different volumes
Post Page Namepage_nameSeveral Pages in one question
Page Username · Page IDusername · page_idIdentifying a Page

Can Claude change a rival's public Facebook data?

Porter reads competitor Pages: Claude looks up Pages, reads counts and public posts, then runs Ad Library audits. The only thing it creates is the audit report inside Porter, and every Facebook Page stays exactly as its owner set it.

How fresh is the data, and how far back?

Page counts and post reactions, comments and shares come live from Meta when you ask, so the same post shows higher numbers later. Page counts show today's numbers, and in Porter's tests posts went back to 2020.

Product stats

WhatFacebook Public Data connector
Fields156 on rival Pages and posts, plus Page search by name
ActionsMeta Ad Library audit: run the audit, enrich creatives, view a creative, publish the report
FreshnessLive from Meta when you ask, so counts keep growing after you ask
HistoryPage counts are today's only; posts went back to 2020 in Porter's tests
PostsMeta returns about 600 ranked posts per Page a year, 100 per request; Porter reads every page in your date range
AccessOne Facebook login for every Page you track, through Meta's Page Public Content Access
Not availableReach, views, follower history, comment text and competitor ad spend

See all 156 Facebook Public Data fields

07Security

Is reading public Facebook data allowed?

Yes, for public data. Porter's Facebook Public Data connector for Claude Code uses Meta's Page Public Content Access feature, which Meta grants following App Review and business verification. Meta allows it "to analyze and/or display posts and engagement on Pages", so the competitor doesn't have to approve anything.

Does Porter scrape Facebook instead of using the API?

No, page and post data come from Meta's Graph API rather than a scraper. Ads also come from Meta's public Ad Library.

What the Facebook Public Data connector needs

It needs just one Facebook login (OAuth), since that covers every Page you track. If it expires, say after a password change, reconnect Facebook in Porter.

08FAQ

FAQ

Answers on setup, scope, scripts and credits, plus fixes for the most common Claude Code errors with Facebook Public Data. 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 put competitor posts next to my own Page results?

Yes. Connect your own Facebook Page in Porter too and ask for its posts in the same prompt. Claude Code writes your Page and the competitors to one file.

Can I track any Facebook Page?

Yes, any public Page. You give Claude Code the Page username, URL or ID, and Porter reads what Meta makes public.

Do Claude Code questions use Porter credits?

Reading public Page data uses no AI credits, so questions and reports on this page are free on every plan.

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 a Page return no data?

Usually the Page is private, age-restricted or the username is wrong. Try the Page URL instead, or another Page to confirm the connection works.

09Next

More Claude connectors

Porter also connects Claude to other social sources, each with its own prompts, fields and limits. Either start with these, or browse Porter's MCP servers for marketing data to use the same sources in other AI clients.

Not only Claude. Send Facebook Public Data data anywhere

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

Try the connector in Claude Code

Porter’s Facebook Public Data connector for Claude Code takes one command, so your first competitor file can land in your project today.

Free plan · 14-day trial · No card needed

Social media managers: competitor posts land in one file, not in screenshots.

Content marketers: rivals’ themes and offers show up week by week.

Agencies: one script tracks every client’s competitors.