PHPackages                             pageon/stitcher-fb-events - 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. pageon/stitcher-fb-events

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

pageon/stitcher-fb-events
=========================

Sync Facebook events

114PHP

Since May 20Pushed 9y ago1 watchersCompare

[ Source](https://github.com/pageon/stitcher-fb-events)[ Packagist](https://packagist.org/packages/pageon/stitcher-fb-events)[ RSS](/packages/pageon-stitcher-fb-events/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Stitcher Facebook events plugin
===============================

[](#stitcher-facebook-events-plugin)

This plugin adds support to sync events from multiple Facebook pages and show them in a Stitcher project.

```
composer require pageon/stitcher-fb-events

```

```
# Project config file

plugins:
    - Pageon\Stitcher\FbEventsPlugin
```

Usage
-----

[](#usage)

First of all, you'll need to generate a Facebook API access token. A Facebook developer account is required, with a registered app. More info can be found [on the 'Facebook for developers' page](https://developers.facebook.com/apps).

With an app id and an app secret, you'll be able to generate the access token.

```
GET https://graph.facebook.com/oauth/access_token?client_id=APP_ID&client_secret=APP_SECRET&grant_type=client_credentials

```

This token should be added in your project's config file.

```
# config.yml

fb.events.access.token: 1111111111111|adsdbkjabd234234111
```

Next, you'll need to add the [page IDs](https://findmyfbid.com/) you want to sync.

```
# config.yml

fb.events.pages:
    - 147370815293145
    - ...
```

Finally the command to sync facebook events can be run.

```
./stitcher fb:event:sync

```

Configuration
-------------

[](#configuration)

Besides the access token and page ids, you can also specify how many days in the past and future events should be searched for. These parameters both default to 7. Besides the day limits, you can also configure a file in which Stitcher should save the loaded data.

```
fb.events.days.past: 7
fb.events.days.future: 7
fb.events.file: data/_fb_events.yml
```

Usage
-----

[](#usage-1)

After running the `fb:events:sync` command, a file `data/_fb_events.yml` will be available. These entries can be used the same way as any other data file.

```
# site.yml

/events:
    template: events
    variables:
        events: data/_fb_events.yml
```

You'd probably want a cronjob or manual trigger to update the data and re-render the events page.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8868d3a9248a5a7aad3620ea8666ae0925d8176dec79761b7f03b31f977c06e?d=identicon)[Pageon](/maintainers/Pageon)

### Embed Badge

![Health badge](/badges/pageon-stitcher-fb-events/health.svg)

```
[![Health](https://phpackages.com/badges/pageon-stitcher-fb-events/health.svg)](https://phpackages.com/packages/pageon-stitcher-fb-events)
```

###  Alternatives

[charm/uuid

A very fast and dependency free library to generate UUIDs (GUIDs) version 1 or 4, sortable UUIDs that validates, or 64 bit unique identifiers according to Twitters' Snowflake, Sonyflake or Instaflake algorithms.

1227.2k](/packages/charm-uuid)

PHPackages © 2026

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