PHPackages                             piedweb/facebook-scraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. piedweb/facebook-scraper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

piedweb/facebook-scraper
========================

{ Harvest Data | Scrap } from Scrape Facebook public pages without an API key

0.0.76(4y ago)24.6k2[2 issues](https://github.com/PiedWeb/FacebookScraper/issues)1MITPHPPHP ^7.4|^8.0

Since Jan 13Pushed 4y agoCompare

[ Source](https://github.com/PiedWeb/FacebookScraper)[ Packagist](https://packagist.org/packages/piedweb/facebook-scraper)[ Docs](https://dev.piedweb.com)[ RSS](/packages/piedweb-facebook-scraper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (14)Used By (1)

PHP Facebook Scraper
====================

[](#php-facebook-scraper)

[![Latest Version on Packagist](https://camo.githubusercontent.com/b03e7ac39352ca89ca28379e26fd5379dfd864c5a40ef9ebf9ad9df0af07a2bc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f706965647765622f66616365626f6f6b2d736372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/piedweb/facebook-scraper)[![GitHub Tests Action Status](https://camo.githubusercontent.com/e8da1a68e14a8293305eab4c5eb482857c21a84e94db73d00efb11a93039b2c1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f706965647765622f46616365626f6f6b536372617065722f54657374733f6c6162656c3d7465737473)](https://github.com/PiedWeb/FacebookScraper/actions)[![Total Downloads](https://camo.githubusercontent.com/42d2f15f4dc01cc1933589897fac4588a69279db64cd73e3026410e8c0115a1c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f706965647765622f66616365626f6f6b2d536372617065722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/piedweb/facebook-Scraper)

{ Harvest Data | Scrap } from Scrape Facebook public pages without an API key.

*DISCLAMER* : this code is share only for educational purpose. Using it *probably* against facebook's terms of service.

Projet en pause, le client qui requête facebook est affreux à l'usage.

Installation
------------

[](#installation)

```
composer require piedweb/facebook-scraper
```

Usage
-----

[](#usage)

```
use PiedWeb\FacebookScraper\FacebookScraper;

$fbScraper = new FacebookScraper('myPageId');

$fbScraper->getPosts();

/** @Return array with subarray containing
 * publish_time
 * post_id
 * text
 * comment_number
 * like_number
 * images array
 */
```

Testing
-------

[](#testing)

```
composer test
```

Todo
----

[](#todo)

- review
- post comment

Credits
-------

[](#credits)

- Robin from [Pied Web](https://piedweb.com)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[![PHP Packages Open Source](https://raw.githubusercontent.com/PiedWeb/piedweb-devoluix-theme/master/src/img/logo_title.png)](https://dev.piedweb.com)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~32 days

Recently: every ~94 days

Total

13

Last Release

1563d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/afce4cf517928a50560237f1410d5957271fd808671b2216687ecf1422adaee0?d=identicon)[Robin D.](/maintainers/Robin%20D.)

---

Top Contributors

[![RobinDev](https://avatars.githubusercontent.com/u/3944894?v=4)](https://github.com/RobinDev "RobinDev (17 commits)")

---

Tags

piedwebFacebookScraper

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/piedweb-facebook-scraper/health.svg)

```
[![Health](https://phpackages.com/badges/piedweb-facebook-scraper/health.svg)](https://phpackages.com/packages/piedweb-facebook-scraper)
```

###  Alternatives

[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
