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.10.0.tar.gz (66.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.10.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reeln_plugin_meta-0.10.0.tar.gz
Algorithm Hash digest
SHA256 0609286c3dde88ab57a876083cfb29c6b6bb1f42b47ae7e164f2e59c13de31d7
MD5 ead0d02809d36ef6ea0c583bac494ff9
BLAKE2b-256 45fdfd9b2baa742e2cfaddc745a6fd4bf2e643741a1b652b713f1c546d398210

See more details on using hashes here.

Provenance

The following attestation bundles were made for reeln_plugin_meta-0.10.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.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reeln_plugin_meta-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0d1c1d9b03e431dacbbf3840d9da8667077a6447d6b61c7ed2dd2d94862c85bd
MD5 c2105e7f6a2f7b31ecc90082b64c896d
BLAKE2b-256 979c8a168619cb5673d599447ea5e8782643236d7c94accc179188a32af53592

See more details on using hashes here.

Provenance

The following attestation bundles were made for reeln_plugin_meta-0.10.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