Skip to content

Releases: bottenderjs/bottender-facebook

v0.7.6 / 2019-12-24

24 Dec 10:40
Compare
Choose a tag to compare

Patches

  • Fix: put text into message for send private messages : 8127d99
  • fix: fix new api parameter : 130e133
  • chore: use new private reply api in batch mode : 845be4e
  • chore(privateReply): use messages api instead of private replies : cd1fcbc

0.7.2 / 2019-09-11

02 Oct 04:16
Compare
Choose a tag to compare

Patches

  • Fix: fix undefined error when receiveing page like events : d006a12

0.7.1 / 2019-02-15

15 Feb 06:29
Compare
Choose a tag to compare
  • [fix] fix getting wrong page id when receiving batch request #69

0.7.0 / 2019-01-30

30 Jan 15:10
Compare
Choose a tag to compare
  • [deps] move bottender and messaging-api-messenger to peerDependencies.

0.6.3 / 2018-12-07

07 Dec 10:30
ceb535b
Compare
Choose a tag to compare
  • [deps] update deps including bottender

0.6.2 / 2018-11-09

09 Nov 06:28
Compare
Choose a tag to compare
  • [new] Add skipProfile option to FacebookConnector to skip auto updating user profile:
const connector = new FacebookConnector({
  accessToken: ACCESS_TOKEN,
  appSecret: APP_SECRET,
  skipProfile: true,
});

0.6.1 / 2018-11-08

08 Nov 06:47
Compare
Choose a tag to compare
  • [deps] update messaging-api-messenger

0.6.0 / 2018-11-08

07 Nov 17:28
Compare
Choose a tag to compare
  • [new] add skipAppSecretProof and origin 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

31 Oct 10:46
b5b92ce
Compare
Choose a tag to compare
  • [fix] fix FacebookConnector class property initialization.

0.5.0 / 2018-10-30

30 Oct 08:44
Compare
Choose a tag to compare
  • [breaking] Upgrade default graph api version to 3.2
  • [new] rewrite FacebookClient to accept custom origin 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',
    }),
  }),
});