0.7.2 • Published 2 years ago
@sociably/messenger v0.7.2
Messenger Platform
Receive events and send messages through Messenger platform.
Install
npm install @sociably/core @sociably/http @sociably/messenger
# or with yarn
yarn add @sociably/core @sociably/http @sociably/messenger
Docs
Check the platform document and the package reference.
Setup
import Sociably from '@sociably/core';
import Http from '@sociably/http';
import Messenger from '@sociably/messenger';
const {
MESSENGER_PAGE_ID,
MESSENGER_APP_ID,
MESSENGER_ACCESS_TOKEN,
MESSENGER_APP_SECRET,
MESSENGER_VERIFY_TOKEN,
} = process.env;
const app = Sociably.createApp({
modules: [
Http.initModule({ /* ... */ }),
],
platforms: [
Messenger.intiModule({
entryPath: '/webhook/messenger',
pageId: MESSENGER_PAGE_ID,
appSecret: MESSENGER_APP_SECRET,
accessToken: MESSENGER_ACCESS_TOKEN,
verifyToken: MESSENGER_VERIFY_TOKEN,
}),
],
});
0.9.0-alpha.0
2 years ago
0.9.0-alpha.4
2 years ago
0.9.0-alpha.26
2 years ago
0.9.0-alpha.15
2 years ago
0.9.0-alpha.22
2 years ago
0.9.0-alpha.11
2 years ago
0.9.0-alpha.13
2 years ago
0.9.0-alpha.25
2 years ago
0.9.0-alpha.14
2 years ago
0.7.2
3 years ago
0.7.1
3 years ago
0.7.0
3 years ago