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

@hitechclaw/channel-facebook

v2.0.1

Published

HiTechClaw Facebook Messenger channel plugin

Readme


title: Facebook Messenger description: Connect HiTechClaw to Facebook Messenger via the Meta Graph API webhook.

Prerequisites

  • A Meta Business Account
  • A Facebook Page (the bot will appear as this page)
  • A Meta Developer App linked to your page

Setup

1. Create a Meta App

  1. Go to developers.facebook.comMy AppsCreate App
  2. Select Business, then add the Messenger product
  3. Under MessengerSettings, generate a Page Access Token for your page
  4. Note the Page ID shown next to your page name

2. Configure Webhook

HiTechClaw exposes a universal channel webhook at:

GET  https://your-domain/webhooks/channels/:connectionId   ← Meta verification
POST https://your-domain/webhooks/channels/:connectionId   ← Incoming messages

In the Meta Developer Portal:

  1. Go to MessengerWebhooksAdd Callback URL
  2. Set Callback URL to https://your-domain/webhooks/channels/<connectionId>
  3. Set Verify Token to the same value you enter in HiTechClaw
  4. Subscribe to the messages and messaging_postbacks fields

Tip: Get <connectionId> from the channel card in HiTechClaw after saving the configuration.

3. Configure in HiTechClaw

  1. Navigate to ChannelsAdd ChannelFacebook Messenger
  2. Fill in the fields below
  3. Click Test Connection — HiTechClaw calls the Graph API and returns your page name
  4. Click Activate

Configuration Fields

| Field | Required | Description | |-------|----------|-------------| | pageAccessToken | ✅ | Long-lived page access token from Meta App | | pageId | ✅ | Facebook Page ID | | verifyToken | ✅ | Custom string for webhook verification | | appSecret | ❌ | App Secret for payload signature verification (recommended) |

How It Works

  • Incoming text: Processed via the universal channel message handler
  • Postbacks: payload field from quick-reply buttons is treated as a user message
  • Outgoing: Sent via POST /v18.0/me/messages to the Graph API
  • Webhook verification: Meta sends a GET with hub.challenge — HiTechClaw verifies the token and echoes the challenge

Features

  • ✅ Text messages in/out
  • ✅ Postback payloads (quick-reply buttons)
  • ✅ Test Connection validates page token before activation
  • ✅ Universal webhook route shared with WhatsApp/Zalo
  • ❌ Image/attachment sending (send text only; receiving images works)

Limitations

  • Facebook pages must be in Live mode to receive messages from real users (not just test users)
  • Rate limits: 200 calls/user/hour on the Messenger API