Skip to main content

reeln-cli plugin for Meta platform integration (Facebook Live, Instagram, Threads)

Project description

reeln-plugin-meta

A reeln-cli plugin for Meta platform integration (Facebook Live, Instagram, Threads).

Install

pip install reeln-plugin-meta

Or for development:

git clone https://github.com/StreamnDad/reeln-plugin-meta
cd reeln-plugin-meta
make dev-install

Features

  • Facebook Live Video — creates a live video on your Facebook Page during ON_GAME_INIT
  • Writes the livestream embed URL to context.shared["livestreams"]["meta"]
  • All features are opt-in via boolean feature flags (default false)

Setup

See the Facebook App Setup Guide for detailed instructions on creating a Facebook App, generating tokens, and troubleshooting common errors.

Quick Start

# 1. Save your Page Access Token
echo "YOUR_PAGE_TOKEN" > ~/.config/reeln/secrets/meta_page_token.txt

# 2. Configure the plugin
reeln config set meta.page_access_token_file ~/.config/reeln/secrets/meta_page_token.txt
reeln config set meta.page_id YOUR_PAGE_ID
reeln config set meta.create_livestream true

# 3. Run a test broadcast
reeln game init

Configuration

Feature Flags

Each capability is gated behind a boolean flag (default false):

Field Default Description
create_livestream false Enable Facebook Live Video creation on ON_GAME_INIT
dry_run false Log API calls without executing them

Required Settings

Field Type Description
page_access_token_file str Path to Facebook Page access token file
page_id str Facebook Page ID

Livestream Settings

Field Type Default Description
graph_api_version str v24.0 Graph API version
status str LIVE_NOW Broadcast status (LIVE_NOW or UNPUBLISHED)
privacy str (omit) Privacy setting — Page tokens do not support this field (causes #200 Permissions error). Only use with User tokens (EVERYONE, SELF, etc.)
content_category str SPORTS Content category (SPORTS, VIDEO_GAMING, etc.)
game_id str "" Facebook game ID to tag the broadcast with
stop_on_delete_stream bool false Auto-end broadcast when RTMP stream disconnects

All settings can be overridden per named profile.

Note: Named profiles are standalone config files — they do not inherit or merge with the base config.json. Each profile must include the full configuration for all enabled plugins.

Development

make dev-install      # uv venv + editable install with dev deps
make reeln-install    # install into sibling reeln-cli venv
make test             # pytest with 100% coverage
make lint             # ruff check
make format           # ruff format
make check            # lint + mypy + test

License

AGPL-3.0-only

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reeln_plugin_meta-0.9.0.tar.gz (63.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reeln_plugin_meta-0.9.0-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file reeln_plugin_meta-0.9.0.tar.gz.

File metadata

  • Download URL: reeln_plugin_meta-0.9.0.tar.gz
  • Upload date:
  • Size: 63.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reeln_plugin_meta-0.9.0.tar.gz
Algorithm Hash digest
SHA256 503f19822539a9851452257b75e80862752690ca73dcb3e455d8e39e03b0e5f3
MD5 78aac2afc96a89191c35f57f99d2a635
BLAKE2b-256 c852ee814b4a0808b3e02db0126f3f19c8418d3a3e8a4f58b86236a215e67d38

See more details on using hashes here.

Provenance

The following attestation bundles were made for reeln_plugin_meta-0.9.0.tar.gz:

Publisher: release.yml on StreamnDad/reeln-plugin-meta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reeln_plugin_meta-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reeln_plugin_meta-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc361069cac66926cb7f47a101ed314a4c905cbddc52c497d6f606391eacd4f2
MD5 6c4de91d23e0cf900b28304534b63cbf
BLAKE2b-256 9e1e6c0c5bdab28afb9a9113ca255b2aed474b7fd16abf46fa44ac1efb4e884b

See more details on using hashes here.

Provenance

The following attestation bundles were made for reeln_plugin_meta-0.9.0-py3-none-any.whl:

Publisher: release.yml on StreamnDad/reeln-plugin-meta

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page