Is Scraping Facebook Legal? Terms of Service & Policy Explained
- Two separate questions. Facebook's terms of service and the law give different answers. Meta's Automated Data Collection Terms ban scraping without prior written permission, and as of January 1, 2025 that ban covers automated collection whether you are logged in or logged out.
- The 2024 ruling came first. In Meta v. Bright Data the court read Meta's then-current terms to permit logged-off scraping of public pages. Meta rewrote the terms months later to close that gap.
- The CFAA line is public vs gated. After hiQ v. LinkedIn, scraping public data is unlikely to be unauthorized access. Data behind a login is the opposite risk profile.
- Personal data still carries privacy risk. Meta paid a EUR 265 million GDPR fine over scraped profile data. Public availability does not remove GDPR or CCPA duties.
People ask me “is scraping Facebook legal” expecting a yes or no. There is no single answer, because the question hides two separate ones: does it break Facebook’s rules, and does it break the law. Those are different systems with different referees, and over the past two years they have moved in ways that most write-ups have not caught up with.
I work on Facebook data extraction, so I read the actual documents myself. Below I walk through what Meta’s terms of service say about scraping, how the 2024 court ruling and Meta’s January 2025 terms rewrite interact, where the facebook marketplace scraping policy and Ad Library lines fall, and which categories of data move you from low risk to high. This is general information from an engineer, so treat it as a map and get a lawyer for anything material.
Is scraping Facebook legal, in one paragraph?
Scraping publicly visible Facebook pages is treated in the United States as not a crime under the Computer Fraud and Abuse Act, following the hiQ v. LinkedIn line of cases. Meta’s Automated Data Collection Terms still prohibit automated collection without prior written permission, and as of January 1, 2025 that prohibition applies whether you scrape logged in or logged out. Collecting personal data, public or not, brings privacy laws like the GDPR and CCPA into play on top of everything else. So the honest answer is that legality depends on three variables: which system you mean (contract, CFAA, or privacy law), whether the data is public, and whether it identifies a person.
Here is the whole article compressed into one table. The rest of the piece explains each row.
| Variable | Lower risk | Higher risk |
|---|---|---|
| Legal system | CFAA, for public data | Meta’s contract terms; privacy law |
| Data visibility | Public to anyone, no login | Behind a login or privacy setting |
| Data type | Aggregate, non-personal (prices, counts) | Personal data (names, contacts, friends) |
| Method | Official API or logged-off public collection | Logged-in automated collection inside an account |
What do Facebook’s terms of service say about scraping?
Meta’s terms prohibit automated scraping without prior written permission. The Automated Data Collection Terms state that you may not “access or collect data from our Products using automated means (without our prior permission) or attempt to access data you do not have permission to access.” The policy defines automated data collection broadly, covering “web scrapers, bots, robots, spiders, crawlers, user-agents, and other automated or programmatic mechanisms.” It also says that accepting the terms alone does not count as the written permission required, which has to be granted separately, and it bars any attempt to circumvent the technical measures Meta uses to limit access.
So on a plain reading of the contract, the facebook terms of service scraping prohibition is explicit: automated data collection without written permission is not allowed. Meta backs this with enforcement. The company runs a dedicated anti-scraping team and describes its rate limits and data limits in its How We Combat Scraping post and its broader Transparency Center materials. The terms also reserve Meta’s right to suspend or disable accounts involved in scraping.
That is the facebook terms automated data collection scraping rule in its own words. The interesting part is how a court read an earlier version of it, and how Meta responded.
Does scraping Facebook violate the terms of service after the Bright Data ruling?
This is where the timeline matters, because the answer changed inside eighteen months. On January 23, 2024, Judge Edward Chen of the Northern District of California granted summary judgment to Bright Data in Meta v. Bright Data. The court’s holding was direct: “The Facebook and Instagram Terms do not bar logged-off scraping of public data; perforce it does not prohibit the sale of such public data.”
The reasoning hinged on a contract principle. Meta’s terms bound people while they used an account. Bright Data scraped public Facebook and Instagram pages while logged out, so the court found it was not bound by the terms during that activity, even though it held accounts at other times. The analyses from Zyte and the Quinn Emanuel client alert both land on the same reading: under those terms, the contract line was your login state. Meta dismissed its remaining claim a month later, on February 23, 2024, which Bright Data documents as ending the case.
Then Meta changed the contract. Its updated Terms of Service took effect on January 1, 2025, and added a clause that the old version lacked. The prohibition now reads that you may not collect data using automated means without permission “regardless of whether such automated access or collection is undertaken while logged-in to a Facebook account,” a change Social Media Today reported as written specifically to close the logged-off gap. The practical effect for 2026:
| Period | Terms in force | Logged-off public scraping under the contract |
|---|---|---|
| Through 2024 | Pre-2025 terms | Read by the court in Bright Data as not barred |
| From Jan 1, 2025 | Updated terms | Expressly prohibited, logged in or logged out |
So the Bright Data win interpreted a contract that Meta has since rewritten. The ruling still tells you how a court treats the logged-in versus logged-off distinction, and it remains useful precedent on the public-data question. It does not describe the terms a scraper agrees to today. This is the single most important update for anyone reading older guides, and it is why the contract question and the statutory question have to be kept apart.
Is scraping Facebook legal under the law, separate from the terms?
The terms are a contract. The Computer Fraud and Abuse Act is a federal statute, and breaking it is a more serious matter than breaching terms of service. The governing case here is hiQ Labs v. LinkedIn.
On April 18, 2022, the Ninth Circuit reaffirmed a narrow reading of the CFAA’s “without authorization” language. As the Jenner & Block client alert summarizes, the court held that when a computer network generally permits public access to its data, accessing that public data is unlikely to be access “without authorization” under the CFAA. The court applied the “gates-up-or-down” framing from the Supreme Court’s 2021 Van Buren v. United States decision, which narrowed the statute: a public page sets no gate, so there is nothing to climb over. The Fenwick analysis of the ruling notes the court left the door open for liability where data sits behind a login.
So the statutory line is public versus gated:
| Data location | CFAA posture | Basis |
|---|---|---|
| Public page, no login required | Unlikely to be “without authorization” | hiQ v. LinkedIn |
| Behind a login or password | Potential CFAA exposure | Van Buren |
This is why the question “can we scrape data from Facebook” gets a “not a CFAA crime” for public pages in the US, and it is where the two systems diverge in 2026. The CFAA still favors public data, but Meta’s contract now prohibits automated collection of that same public data without permission, so a scraper can sit on the safe side of the statute and still be in breach of the terms it accepted. That breach is a contract claim, a different and lesser exposure than a federal crime, and keeping those two outcomes separate is the whole game, with the third system, privacy law, sitting on top of both.
Where do privacy laws fit, and why public data is not “free” data?
This is the part teams skip, and it is the part with the largest fine attached. Even when scraping clears the CFAA, the data itself can be regulated. If it identifies a person, privacy law applies regardless of how visible the page was.
Meta learned this on the receiving end. On November 25, 2022, Ireland’s Data Protection Commission fined Meta EUR 265 million after a dataset covering more than 500 million users was scraped and posted online. The DPC found infringements of Article 25 of the GDPR, which requires data protection by design and by default. The features involved were Facebook Search and the Messenger and Instagram contact importers, which is to say the friends-and-contacts surface.
The lesson runs in both directions. Meta was penalized for exposing the data, and a scraper collecting and reselling that same personal data would face its own GDPR obligations, plus CCPA duties for California residents under the rights set out by the California Attorney General: the right to know, to delete, and to opt out. So I split Facebook data into two buckets before any project:
- Non-personal or aggregate data: listing prices, post counts, public engagement totals, ad creative. Lower privacy risk because it does not identify an individual.
- Personal data: names, profile details, friends lists, contact information, anything tied to a person. Privacy law applies even when the page is public.
That split is also the answer to “can AI or bots scrape Facebook friends list” questions: a friends list is personal data and usually gated, so it fails both the privacy test and the public-data test at once. If you want the conceptual grounding on what counts as scraped data in the first place, I cover it in what is Facebook scraping.
Can I scrape Facebook Marketplace data? The Facebook Marketplace scraping policy explained
Marketplace is the question I get most, so it gets its own section. Public Marketplace listings render on public pages, which means the facebook marketplace scraping policy is not a special regime. It inherits the same three tests as the rest of Facebook, and the facebook marketplace scraping terms of service position is the same one covered above: Meta’s updated terms prohibit automated collection without permission.
| Marketplace element | Public? | Personal data? | Risk read |
|---|---|---|---|
| Listing title, price, description | Yes | No | Lowest risk on the data axis |
| Listing photos | Yes | Usually no | Low risk on the data axis |
| Seller name and profile | Yes | Yes | Privacy law applies |
| Buyer messages, saved items | No, gated | Yes | High risk, avoid |
Public listing details (price, item, location, photos) sit in the lower-risk bucket on the CFAA and privacy axes, because they are public and non-personal. Seller identity is personal data and pulls in GDPR and CCPA duties. Anything that requires logging in, such as message threads, lands on the high-risk side of both the CFAA line and Meta’s contract. So “can I scrape Facebook Marketplace data” comes down to which fields you take: public listing data is the defensible scope, seller identity needs a privacy basis, and gated content is the line I do not cross. For the tooling side, I maintain a roundup of the best Facebook Marketplace scrapers in 2026 and a programmatic Facebook Marketplace Scraper API.
What about the Facebook Ad Library?
The Ad Library has a cleaner answer than most surfaces, because Meta built an official door. The Ad Library API gives read-only access to public ads for transparency and research, and Meta gates it behind an identity-verification step so it can revoke access for abuse. Using the API within its scope is the sanctioned method, which Meta documents in its Transparency Center research tools.
Scraping the Ad Library web interface with automation is a different story, because that runs straight back into the Automated Data Collection Terms. The facebook ad library scraping terms of service answer is therefore simple: when an official API exists for the exact data you want, use it. Ad creative is also non-personal in most cases, which keeps the privacy risk low even at volume. For ad-data projects that need more than the official API exposes cleanly, I compare approaches in the Facebook Ads Scraper API overview.
How I keep a Facebook data project on the right side of all three systems
When the contract, the statute, and privacy law are in play at once, the lowest-risk pattern is consistent. The setup below is what I run, and it maps directly onto the three lines this article has drawn.
# Logged-off collection of a PUBLIC Facebook page.
# No account login, so the data sits on the safe side of the hiQ CFAA line.
# The contract question is separate: get written permission for commercial use.
curl "https://chocodata.com/api/v1/facebook/page?url=https://www.facebook.com/Meta&api_key=$CHOCO_API_KEY"
That single request returns parsed public page data without me logging into an account, registering my IP against Meta’s anti-scraping systems, or building a proxy rotation. The collection runs server-side against public targets, which keeps the login variable at “logged out” and the data on the public side of the CFAA. You can get a key at the ChocoData sign-up page and point it at public pages, groups, or Marketplace listings.
A clean Facebook data project comes down to a short checklist:
- Keep to public data. Gated content behind a login is the category courts have flagged under the CFAA.
- Treat personal data carefully. Names, contacts, and friends lists trigger privacy law no matter how public the page looked. The EUR 265 million DPC fine sat on exactly this data.
- Mind the contract for commercial use. Meta’s 2025 terms prohibit automated collection without written permission, so the contract line is real even when the CFAA is satisfied. The facebook data scraping policy is a permission regime.
- Use the official API when one exists. The Ad Library is the clearest example.
- Get legal review for anything commercial. A district-court ruling, a Ninth Circuit opinion, and a rewritten contract are guidance. None of them is a permission slip.
None of this is legal advice, and the law here is still moving. What has held up across the 2022, 2024, and 2025 changes is the shape of the risk: public data is defensible under the CFAA, gated and logged in is the exposed posture, personal data is its own regime, and Meta’s contract now reaches automated collection in either login state. Build to that shape and most of the hard questions answer themselves. For the technical side of staying unblocked once the legal side is settled, see how to scrape Facebook without getting blocked, and for choosing a tool, the best Facebook scrapers in 2026.
FAQ
Does scraping Facebook violate the terms of service?
Yes, under Meta's current terms. The Automated Data Collection Terms prohibit collecting data by automated means without prior written permission, and Meta's updated Terms of Service, effective January 1, 2025, extend that prohibition to automated collection whether or not you are logged into a Facebook account. The January 2024 ruling in Meta v. Bright Data read the older terms to permit logged-off scraping of public pages, which is the loophole the rewrite was written to close.
Can I scrape Facebook Marketplace data?
Public Marketplace listings sit on public pages, so the Facebook Marketplace scraping policy follows the same three tests as the rest of Facebook: the contract terms, the CFAA public-data line, and privacy law. Public listing fields such as price and product details carry the lowest risk. A seller's name and profile are personal data covered by GDPR and CCPA, and anything behind a login such as buyer messages is the highest-risk category.
Is scraping the Facebook Ad Library against the terms of service?
Meta publishes an official Ad Library API for this exact purpose, and using it within its scope is the sanctioned route. Scraping the Ad Library web interface with automation runs into the Automated Data Collection Terms, so the Facebook Ad Library scraping terms of service point you toward the API when you can verify your identity for access.
Can AI or bots scrape my Facebook friends list?
A friends list is generally gated behind a login and privacy settings, which puts it on the wrong side of both the CFAA public-data line from hiQ and Meta's terms. Meta's EUR 265 million DPC fine involved exactly this kind of contact and profile data scraped through Facebook Search and the contact importers, so scraping a friends list is the highest-risk category covered here.
Is scraping Facebook legal in 2026?
Scraping public Facebook data is treated as not a CFAA crime in the US under current Ninth Circuit case law. That is not blanket permission. Meta's terms now prohibit automated collection logged in or logged out, gated data raises CFAA exposure, and any personal data triggers privacy law. Legal posture depends on the data and the method, so this is general information and not legal advice.