@dj-shortcut

Facebook Page Messenger

OpenClaw Facebook channel plugin

当前版本
v2026.5.10-beta.1
code-plugin社区source-linked

OpenClaw Facebook Plugin

Private hardening repo for the installable @dj-shortcut/facebook plugin.

V1 connects a Meta app, a Facebook Page, and the Messenger product so OpenClaw can handle Facebook Page Messenger direct messages through Meta webhooks. The public plugin id, channel id, config key, setup docs, and default webhook path use facebook because this is the Facebook/Meta integration surface, not a standalone generic Messenger channel. Legacy messenger, fb, and fbm aliases remain temporarily for existing installs only.

The short version: install and configure facebook; expect V1 capability to be Facebook Page Messenger DMs.

Install

Private phase:

openclaw plugins install <private-git-or-tarball-url>

ClawHub phase:

openclaw plugins install clawhub:@dj-shortcut/facebook

Public phase:

openclaw plugins install @dj-shortcut/facebook

Configure

Use channels.facebook for new installs:

{
  channels: {
    facebook: {
      enabled: true,
      pageId: "<FACEBOOK_PAGE_ID>",
      pageAccessToken: "<FACEBOOK_PAGE_ACCESS_TOKEN>",
      appSecret: "<FACEBOOK_APP_SECRET>",
      verifyToken: "<FACEBOOK_VERIFY_TOKEN>",
      dmPolicy: "pairing"
    }
  }
}

Default webhook:

https://<gateway-host>/facebook/webhook

Do not configure a second active messenger channel. Existing channels.messenger config and MESSENGER_* secrets remain temporary fallbacks, but new installs should use channels.facebook and FACEBOOK_*. The old /messenger/webhook path is not the new default; keep it only if an existing deployment explicitly configured that legacy webhookPath.

See docs/setup.md for the full Meta setup flow. See docs/clawhub.md for ClawHub release preparation.

Local/private install validation

This plugin does not need to be published to npm before it can be installed privately:

npm run build
npm test
npm run pack:dry
npm pack
openclaw plugins install ./openclaw-facebook-*.tgz
openclaw channels list

Expected channel listing: Facebook. There should be no separate Messenger channel.

Development

npm install
npm run build
npm test
npm run pack:dry

Do not commit real Page tokens, app secrets, verify tokens, PSIDs, or live deployment config.

源码与版本

源码仓库

Dj-Shortcut/openclaw-facebook

打开仓库

源码提交

c3bae9c39ab981e8304c4284f88f15c297524fb2

查看提交

安装命令

openclaw plugins install clawhub:@dj-shortcut/facebook

元数据

  • 包名: @dj-shortcut/facebook
  • 创建时间: 2026/05/14
  • 更新时间: 2026/05/14
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.5.10-beta.1
  • 插件 API 范围: >=2026.5.10-beta.1
  • 标签: latest
  • 文件数: 66