Skip to content

fb-commenter

You wrote a post in a Facebook group and people commented on it. This tool reads all the comments, writes five slightly different friendly private messages (so they do not all look identical), and sends a private message to every single person who commented. It saves you from typing the same thing to fifty people one at a time.

  • Running a campaign on a group post — sweepstakes, webinar signups, offer launches, lead magnets.
  • When comment volume is too high to DM manually and you want AI variety across the DMs so Facebook does not flag them as spam.
  1. Go to chrome://extensions, enable Developer Mode.
  2. Click “Load unpacked” and select ~/apps/fb-commenter/extension/.
  3. Click the extension popup. Paste the post URL and your offer link.
  4. Click “Generate with AI” or manually configure the DM template and variations.
  5. The content script auto-runs on facebook.com and messenger.com when you trigger a send.
RequirementWhere
Local Python server for AI generationlocalhost:7890 — wraps claude -p (Max plan, no API cost)
Chrome with Developer Mode
Manifest permissions grantedactiveTab, storage, scripting, tabs; host: *.facebook.com, m.facebook.com, localhost:7890

No hardcoded credentials. All config is stored in chrome.storage.local and preset-config.json.

  • Repo: ~/apps/fb-commenter/
  • Entry files: extension/manifest.json, popup.html, popup.js, background.js, content.js, preset-config.json, options.html
  • Local server: must be running at localhost:7890 for AI generation.
  • Critical bug (open since March 6, 2026): double-send DMs. Builds 81 through 99 were tested against a stale cached service worker; Build 99 has not been verified post-cache-clear. Current build is 179 but the root cause is still investigation-pending.
  • Service worker cache gotcha: documented in the repo CLAUDE.md — clear the cache before trusting a build number.