Releases: bottenderjs/bottender-facebook
Releases · bottenderjs/bottender-facebook
v0.7.6 / 2019-12-24
0.7.2 / 2019-09-11
Patches
- Fix: fix undefined error when receiveing page like events : d006a12
0.7.1 / 2019-02-15
- [fix] fix getting wrong page id when receiving batch request #69
0.7.0 / 2019-01-30
- [deps] move bottender and messaging-api-messenger to peerDependencies.
0.6.3 / 2018-12-07
- [deps] update deps including
bottender
0.6.2 / 2018-11-09
- [new] Add
skipProfile
option toFacebookConnector
to skip auto updating user profile:
const connector = new FacebookConnector({
accessToken: ACCESS_TOKEN,
appSecret: APP_SECRET,
skipProfile: true,
});
0.6.1 / 2018-11-08
- [deps] update
messaging-api-messenger
0.6.0 / 2018-11-08
- [new] add
skipAppSecretProof
andorigin
support:
const bot = new Bot({
connector: new FacebookConnector({
accessToken: ACCESS_TOKEN,
appSecret: APP_SECRET,
origin: 'https://mydummytestserver.com',
skipAppSecretProof: true,
}),
});
- [new] add batch support:
const { isError613 } = require('messenger-batch');
const bot = new Bot({
connector: new FacebookConnector({
accessToken: ACCESS_TOKEN,
appSecret: APP_SECRET,
batchConfig: {
delay: 1000,
shouldRetry: isError613, // (#613) Calls to this api have exceeded the rate limit.
retryTimes: 2,
},
}),
});
For multiple pages, top level access token should be specified for batch request:
const bot = new Bot({
connector: new FacebookConnector({
accessToken: ACCESS_TOKEN,
appSecret: APP_SECRET,
mapPageToAccessToken,
batchConfig: {
delay: 1000,
shouldRetry: isError613, // (#613) Calls to this api have exceeded the rate limit.
retryTimes: 2,
},
}),
});
0.5.1 / 2018-10-31
- [fix] fix FacebookConnector class property initialization.
0.5.0 / 2018-10-30
- [breaking] Upgrade default graph api version to
3.2
- [new] rewrite
FacebookClient
to accept customorigin
url (#54):
const { Bot } = require('bottender');
const { FacebookConnector, FacebookClient } = require('bottender-facebook');
const bot = new Bot({
connector: new FacebookConnector({
appSecret: APP_SECRET,
client: FacebookClient.connect({
accessToken: ACCESS_TOKEN,
version: '3.2',
origin: 'https://mydummytestserver.com',
}),
}),
});