From 3eda2151edd71dd07d1a10c02c343fcb6694f3bc Mon Sep 17 00:00:00 2001 From: chentsulin Date: Thu, 8 Nov 2018 01:19:53 +0800 Subject: [PATCH] 0.6.0 changelog --- CHANGELOG.md | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e697cc8..15d912d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,53 @@ +# 0.6.0 / 2018-11-08 + +- [new] add `skipAppSecretProof` and `origin` support: + +```js +const bot = new Bot({ + connector: new FacebookConnector({ + accessToken: ACCESS_TOKEN, + appSecret: APP_SECRET, + origin: 'https://mydummytestserver.com', + skipAppSecretProof: true, + }), +}); +``` + +- [new] add batch support: + +```js +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: + +```js +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.