# Facebook Live API bridge

Collect live chat messages from Facebook using the Graph API. This page runs inside the Chrome extension or Electron app, and relays normalized chat events into Social Stream.

Disconnected
Waiting for access token and live video ID.

## Connection settings

Access token
Token is stored locally in this browser profile. Use a Page access token with Live Video permissions.
Show token
Live video ID
Paste the live video ID or a URL that contains /videos/ID.
Page ID or page name
Used by the Resolve button to find the currently live video.
Poll interval (ms)
Shorter intervals improve latency but cost more API calls.
Auto-connect Use live stream filter Poll viewer count

## Status

Connection
Disconnected
Messages relayed
0
Errors
0
Last poll
-
API setup notes

1) Create a Facebook App in developers.facebook.com and enable the Graph API.

2) Generate a Page access token with permissions such as pages_read_engagement and pages_read_user_content.

3) Paste the token above, then enter a live video ID or use Resolve to detect the current broadcast.

4) You can auto-connect by adding `?videoId=VIDEO_ID&access_token=TOKEN&autoconnect=1` to the URL.

## Live chat feed

No messages yet.