Skip to content

About

Scrape comments from your Facebook Live Stream and send them to your API for overlay and stuffs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Facebook Live Comment Bridge

A browser extension that scrapes comments from the Facebook Live Producer dashboard and forwards them to your API endpoint in real-time. Enough for creating live comment overlays.

Installation

  1. Clone this repository:
git clone https://github.com/ryneex/facebook-live-comment-bridge.git
cd facebook-live-comment-scraper
  1. Install dependencies:
pnpm install
  1. Build the extension:
# For Chrome
pnpm build

# For Firefox
pnpm build:firefox
  1. Load the extension:
    • Chrome: Go to chrome://extensions/, enable "Developer mode", click "Load unpacked", and select the .output/chrome-mv3 directory
    • Firefox: Go to about:debugging, click "This Firefox", click "Load Temporary Add-on", and select the manifest file from .output/firefox-mv2

Configuration

  1. Click the extension icon in your browser toolbar
  2. Enter your API endpoint URL (e.g., https://api.example.com/comments)
  3. (Optional) Enter your API key for authentication
  4. Click "Save"

Usage

The extension only works on the Facebook Live Producer dashboard comments page: https://www.facebook.com/live/producer/dashboard/*/COMMENTS/

Once you're on this page, the extension automatically scrapes comments every second and sends them to your configured API endpoint.

API Format

The extension sends POST requests to your configured endpoint:

  • Method: POST
  • Content-Type: application/json
  • Headers: x-api-key (if configured)
  • Body: Array of comment objects

Comment Object

{
  image: string,    // Profile picture URL
  author: string,   // Comment author name
  comment: string   // Comment text content
}

Example Request

[
  {
    "image": "https://scontent.xx.fbcdn.net/v/...",
    "author": "John Doe",
    "comment": "Great stream!"
  }
]

Development

# Development mode
pnpm dev              # Chrome
pnpm dev:firefox      # Firefox

# Build
pnpm build            # Chrome
pnpm build:firefox    # Firefox

# Other commands
pnpm compile          # Type-check
pnpm format           # Format code

Tech Stack

  • WXT - Web Extension Toolkit
  • React - UI framework
  • TypeScript - Type safety
  • Tailwind CSS - Styling

About

Scrape comments from your Facebook Live Stream and send them to your API for overlay and stuffs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages