An open API service indexing awesome lists of open source software.

https://github.com/piedweb/facebookscraper

PHP Facebook Scrapper. DISCLAMER : this code is share only for educational purpose. Using it _probably_ against facebook's terms of service.
https://github.com/piedweb/facebookscraper

Last synced: about 1 year ago
JSON representation

PHP Facebook Scrapper. DISCLAMER : this code is share only for educational purpose. Using it _probably_ against facebook's terms of service.

Awesome Lists containing this project

README

          

# PHP Facebook Scraper

[![Latest Version on Packagist](https://img.shields.io/packagist/v/piedweb/facebook-scraper.svg?style=flat-square)](https://packagist.org/packages/piedweb/facebook-scraper)
[![GitHub Tests Action Status](https://img.shields.io/github/workflow/status/piedweb/FacebookScraper/Tests?label=tests)](https://github.com/PiedWeb/FacebookScraper/actions)
[![Total Downloads](https://img.shields.io/packagist/dt/piedweb/facebook-Scraper.svg?style=flat-square)](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

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

## Usage

```php
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

```bash
composer test
```

## Todo

- review
- post comment

## Credits

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

## License

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


PHP Packages Open Source