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.7.0.tar.gz (50.5 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.7.0-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reeln_plugin_meta-0.7.0.tar.gz
  • Upload date:
  • Size: 50.5 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.7.0.tar.gz
Algorithm Hash digest
SHA256 91b7b5f6730e90477c4c6d0ac6fbfc2cd62d60c9387d01e48a9b0a2e70f12928
MD5 7b6316179f81e624050196265087c2ff
BLAKE2b-256 949e742bd5e5483a474cf6f6b6e607c0bdcf46ff7923765192110a09e7b48a78

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for reeln_plugin_meta-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ca2a48079ef9784e3fa9123035935a7ec734b52bb8f2d378d8f279d641fdc56
MD5 cf739a26205988fc2a3f7665e7d757de
BLAKE2b-256 7c9dff0a810074379dc12a1e84a8e6998dd9ff297f45070fa2a0f1f6f971cb22

See more details on using hashes here.

Provenance

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