npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

hexabot-channel-facebook

v3.3.2

Published

Facebook Messenger channel extension for Hexabot v3.

Readme

Hexabot Facebook Channel

hexabot-channel-facebook adds Facebook Messenger channel support to Hexabot v3. The channel is installed as a standard npm package and is discovered by the API automatically.

Installation

Install the package in the same workspace or deployment that runs @hexabot-ai/api:

npm add hexabot-channel-facebook

Restart the API after installation. The channel appears with the name facebook.

Prerequisites

Before configuring the channel, make sure you have:

  • a Facebook account with access to Meta for Developers;
  • a Facebook Page that the bot will use to talk to Messenger users;
  • a public HTTPS URL for your Hexabot API. For local testing, expose the API with a tunnel such as ngrok;
  • a Hexabot source created with the facebook channel;
  • Hexabot credentials created for the Meta app secret, Page access token, and webhook verify token.

Facebook App Setup

1. Create or Select a Meta App

  1. Open Meta for Developers, sign in, and complete developer registration if required.
  2. From My Apps, create a new app or open an existing one.
  3. In Settings > Basic, copy the App ID and App Secret. Store the app secret securely; it is used by Hexabot to verify webhook signatures.

2. Add Messenger

  1. In the Meta app dashboard, add the Messenger product if it is not already enabled.
  2. Connect the Facebook Page that should receive and send messages.
  3. Generate a Page Access Token for that Page. The app must have the required Messenger permission, usually pages_messaging.

3. Configure the Hexabot Source

In Hexabot, create credentials for the sensitive values, then open the facebook source and set:

  • app_secret: the credential containing the Meta app secret from Settings > Basic.
  • page_access_token: the credential containing the Page access token generated from the Messenger settings or Access Token Tool.
  • verify_token: the credential containing any secure random string you choose. You will enter the same value in Meta during webhook setup.
  • page_id: optional, but recommended when one app is connected to several Pages.
  • app_id: optional operator reference for the Meta app ID.

Save the source before verifying the webhook in Meta.

4. Configure the Webhook in Meta

Use the Facebook source webhook endpoint in Meta:

https://<your-domain>/api/webhook/<sourceRef>

In the Messenger webhook setup:

  1. Use the URL above as the Callback URL.
  2. Use the value stored in the source verify_token credential as the Verify Token.
  3. Verify and save the webhook.

Subscribe the app/Page to these fields:

  • messages
  • messaging_postbacks
  • message_deliveries
  • message_reads
  • message_echoes

After saving, send a message to the connected Facebook Page and confirm that a new subscriber/message appears in Hexabot.

Source Settings

Required settings:

  • app_secret: credential containing the Facebook app secret used to verify webhook signatures.
  • page_access_token: credential containing the Page token used for Send API, profile, and attachment calls.
  • verify_token: credential containing the token used for webhook verification.

Optional settings:

  • page_id: restricts a Hexabot source to one Facebook Page.
  • graph_api_version: defaults to v25.0.
  • user_fields: comma-separated Messenger profile fields.
  • greeting_text, get_started_button, persistent_menu, composer_input_disabled: Messenger profile controls.
  • sync_messenger_profile: syncs Messenger profile settings when the source or Hexabot menu changes.
  • thread_inactivity_hours: controls v3 thread rollover behavior.

Use one Hexabot source per Facebook Page. Each source owns its own credential references and settings.

Supported Messages

Inbound support includes text, quick replies, postbacks, Get Started, locations, attachments, stickers/fallback attachments, deliveries, reads, and echoes.

Outbound support includes text, quick replies, buttons, attachments, lists, carousels, and typing indicators. Lists and carousels use Messenger generic templates; oversized lists include a View More postback element.