# Schmavery/facebook-chat-api

Unofficial Facebook Chat API for Nodejs

Repository: https://github.com/Schmavery/facebook-chat-api
Canonical: https://ross.abutalabs.com/products/facebook-chat-api
Language: JavaScript
License: MIT
License Family: permissive
Archived: true
Last push: 2021-12-24T13:35:25+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4211, "days_push": 1713, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1946, forks 614 (observed 2026-08-28T04:05:57.820023+00:00)

## What it is
An unofficial Node.js library that automates Facebook chat on a user account by emulating browser requests, since Facebook offers no user-account chat API. It lets you log in with credentials and send, receive, and listen to messages to build bots and scripts.

## Use cases
- build an echo bot for facebook messenger
- automate sending messages from my facebook account
- listen for incoming facebook messages in nodejs
- write a script that replies to facebook chats automatically
- send facebook messages from the command line
- create a facebook chatbot without the messenger platform

## When to choose
- you need to automate chat on a personal Facebook user account, which the official Messenger Platform does not allow
- you're building one-off scripts, fun projects, or personal bots
- you want a simple Node.js API for sending and listening to Facebook messages

## When to avoid
- you're building a serious production application, since any Facebook change can break it overnight
- you only need a bot for a Facebook Page — use the official Messenger Platform instead
- you can't risk account restrictions or bans from automated activity

## Facets
- artifact type: library
- maturity: maintenance
- function: http-client, chatbot, sdk
- domain: messaging-platforms, chatbots, developer-tools
- platform: -
- tags: facebook, messenger, unofficial-api, chat-automation, browser-emulation, automation, nodejs, javascript

## Member repositories
- Schmavery/facebook-chat-api (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.820023+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:07:11.074353+00:00, confidence not recorded.
  - readme: https://github.com/Schmavery/facebook-chat-api (fetched 2026-08-28T04:05:57.820023+00:00, sha 3195d69b8a3c)
  - registry_npm: https://registry.npmjs.org/facebook-chat-api (fetched 2026-08-29T10:47:03.788161+00:00, sha f2c59a4f7ce0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
