@onebots/meta
v0.1.8
Published
OneBots Meta Graph API 与 Webhook 共享基础层
Maintainers
Readme
@onebots/meta
Facebook Messenger 与 Instagram Messaging 适配器共用的 Meta Graph API / Webhook 基础层。
MetaGraphTransport固定版本化 Graph 路径,使用 Bearer token,可选appsecret_proof,保留结构化 Graph 错误与用量响应头;MetaWebhookClient支持已有 Host 的acceptHttp(Request)/ingestHttp()与最底层ingest(rawEvent);- POST 必须使用签名覆盖的精确原始字节校验
X-Hub-Signature-256,不会重新序列化 JSON 冒充 raw body; - 业务监听器全部成功后才提交事件身份,Meta 重试不会丢事件;
- 不自行监听端口,也不跟随 Graph
paging.next中的不受信 URL。
English
Shared Meta Graph API and webhook foundation for the Facebook Messenger and Instagram Messaging adapters. It keeps tokens out of URLs, validates exact signed bytes, exposes structured errors and usage metadata, and commits webhook deduplication only after downstream listeners succeed. It never opens its own port.
