Skip to content
PluginStats

@chat-adapter/messenger weekly downloads statistics

By chat-adapter (14 listings) · npm · AI SDKs

Facebook Messenger adapter for Chat SDK — Send API webhooks, templates, and quick replies

View on npm Fresh · Oct 18, 2026

@chat-adapter/messenger has 14,358 recorded weekly downloads on npm, a decrease of 30.4% over the past 30 days, ranking #871 of 2,322 tracked listings.

Weekly downloads
14,358
Official API · Oct 18, 2026
7-day growth
-58.5%
-20.2K weekly downloads
30-day growth
-30.4%
-6.3K weekly downloads
90-day growth
+266%
+10.4K weekly downloads
Rank
#871
Among tracked npm listings

About @chat-adapter/messenger

Facebook Messenger adapter for Chat SDK

@chat-adapter/messenger

npm package: @chat-adapter/messenger

Agent Stack MIT License

Facebook Messenger adapter for Chat SDK, using the Messenger Platform API.

Documentation: chat-sdk.dev/adapters/official/messenger · Guides: vercel.com/kb/chat-sdk

Building for Instagram Direct Messages? Use @chat-adapter/instagram instead. It connects through Instagram API with Instagram Login and does not require a Facebook Page.

Installation

pnpm add @chat-adapter/messenger

Scaffold with the CLI

To scaffold a new Messenger bot with this adapter preselected:

npx create-chat-sdk@latest my-bot --adapter messenger memory

Visit the adapters directory to see other available official and vendor-official adapters.

Usage

import { Chat } from "chat";
import { createMessengerAdapter } from "@chat-adapter/messenger";

const bot = new Chat({
  userName: "mybot",
  adapters: {
    messenger: createMessengerAdapter(),
  },
});

bot.onDirectMessage(async (thread, message) => {
  await thread.post("Hello from Messenger!");
});

When using createMessengerAdapter() without arguments, credentials are auto-detected from environment variables.

Facebook Messenger setup

1. Create a Meta app
  1. Go to developers.facebook.com/apps
  2. Click Create App
  3. Select the use case "Engage with customers on Messenger from Meta"
  4. Enter your app name and contact email, then create the app
  5. Go to App > App Settings > Basic and copy your App Secret — this becomes FACEBOOK_APP_SECRET
2. Create a Facebook Page

Your Messenger bot needs a Facebook Page to send and receive messages. If you don't have one:

  1. The easiest approach is to create a Facebook Business profile first
  2. Then create a Page under that business profile
  3. Note the Page name — users will message this Page to interact with your bot
3. Configure Messenger API
  1. In your Meta app dashboard, go to Use Cases
  2. Find "Engage with customers on Messenger from Meta" and click Customize
  3. Then open Messenger API Settings
Configure webhooks
  1. Under Configure webhooks, click Add Callback URL
  2. Enter your webhook URL: https://your-domain.com/api/webhooks/messenger
  3. Enter a Verify Token — this is a secret string you create (this becomes FACEBOOK_VERIFY_TOKEN)
  4. Click Verify and Save
  5. After verification, click Add Subscriptions and enable:
    • messages
    • messaging_postbacks
    • messaging_reactions
    • message_deliveries
    • message_reads
Generate a Page Access Token
  1. Under Generate access tokens, click Add or remove Pages
  2. Your Pages should populate — select the Page you created
  3. Assign the standard permissions when prompted
  4. Click Generate Token
  5. Copy the token — this becomes FACEBOOK_PAGE_ACCESS_TOKEN

Environment variables

FACEBOOK_APP_SECRET=...              # App secret from App Settings > Basic
FACEBOOK_PAGE_ACCESS_TOKEN=...       # Generated Page access token
FACEBOOK_VERIFY_TOKEN=...            # User-defined webhook verification secret
FACEBOOK_BOT_USERNAME=...            # Optional, defaults to "messenger-bot"
FACEBOOK_API_URL=...                 # Optional, override the Meta Graph API base URL

Webhook setup

Messenger uses two webhook mechanisms:

  1. Verification handshake (GET) — Meta sends a hub.verify_token challenge that must match your FACEBOOK_VERIFY_TOKEN.
  2. Event delivery (POST) — incoming messages, reactions, and postbacks, verified via X-Hub-Signature-256.
// Next.js App Router example
import { bot } from "@/lib/bot";

export async function GET(request: Request) {
  return bot.webhooks.messenger(request);
}

export async function POST(request: Request) {
  return bot.webhooks.messenger(request);
}

Features

Messaging
FeatureSupported
Post messageYes
Edit messageNo (Messenger limitation)
Delete messageNo (Messenger limitation)
StreamingBuffered (accumulates then sends)
Typing indicatorYes
Mark as readYes
Rich content
FeatureSupported
Card formatGeneric/Button Templates
ButtonsYes (max 3 per message)
Link buttonsYes (web_url)
Select menusNo
TablesText fallback
FieldsText fallback
Images in cardsYes (Generic Template)
ModalsNo
Conversations
FeatureSupported
ReactionsReceive only
Typing indicatorYes
DMsYes (DM-only platform)
PostbacksYes
Inbound attachments

Inbound attachment URLs remain available as attachment.url. The adapter's fetchData function downloads media only from Meta's fbsbx.com and fbcdn.net hosts, refuses private and internal addresses (including after redirects), limits responses to 25 MB, and times out after 30 seconds. External fallback and link-share URLs are preserved but rejected before any network request.

Read receipts

Use thread.markAsRead() in a message handler to send Messenger's mark_seen sender action:…

Description from the npm listing.

  • chat
  • chat-sdk
  • chatbot
  • messenger
  • facebook-messenger
  • meta
  • bot
  • adapter
  • messaging
  • ai-agent
  • ai-sdk
  • vercel

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

@chat-adapter/messenger weekly downloads on npm, last 90 days: 14,358 weekly downloads as of Oct 18, 2026, +266% over 90 days.@chat-adapter/messengerWeekly downloads on npm · Last 90 days14,358downloads / week+266% over 90 days010K20K30K40K50KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
@chat-adapter/messenger weekly downloads on npm, last 90 days: 14,358 weekly downloads as of Oct 18, 2026, +266% over 90 days.

7/30/90-day growth

@chat-adapter/messenger weekly downloads growth on npm: -58.5% over 7 days, -30.4% over 30 days, +266% over 90 days.@chat-adapter/messengerWeekly downloads growth on npm14,358downloads / week now7-day growth-20,236 weekly downloads-58.5%30-day growth-6,286 weekly downloads-30.4%90-day growth+10,434 weekly downloads+266%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
@chat-adapter/messenger weekly downloads growth on npm: -58.5% over 7 days, -30.4% over 30 days, +266% over 90 days.

Ranking history

@chat-adapter/messenger npm ranking history: currently #871 (by weekly downloads).@chat-adapter/messengernpm ranking · by weekly downloads · Last 90 days#871current rank#830#840#850#860#870#880Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
@chat-adapter/messenger npm ranking history: currently #871 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 44, #12 (overall #872)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 3, #13 (overall #53)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (122)
Recent weekly downloads observations for @chat-adapter/messenger
Date (UTC)Weekly downloadsChange vs. previous
14,358+140
14,218-2.6K
16,844+1.5K
15,393-8.3K
23,704-9.9K
33,5660
33,566-1K
34,594+1.7K
32,920-1.4K
34,348-2.7K
37,085+1.7K
35,373+2.9K
32,516-8.6K
41,101—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/@chat-adapter/messenger. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.