Releases: bottenderjs/bottender-facebook
Releases · bottenderjs/bottender-facebook
0.4.3 / 2018-10-17
- [new]
client.sendComment(objectId, comment)
- support attachment as comment:
await client.sendComment('<object_id>', 'ok!'); // send as text message
await client.sendComment('<object_id>', { message: 'ok!' });
await client.sendComment('<object_id>', { attachment_id: '<attachment_id>' });
await client.sendComment('<object_id>', {
attachment_share_url: 'https://example.com/img.gif',
});
await client.sendComment('<object_id>', {
attachment_url: 'https://example.com/img.jpg',
});
- [new]
context.sendComment(comment)
- support attachment as comment:
await context.sendComment('ok!'); // send as text message
await context.sendComment({ message: 'ok!' });
await context.sendComment({ attachment_id: '<attachment_id>' });
await context.sendComment({
attachment_share_url: 'https://example.com/img.gif',
});
await context.sendComment({ attachment_url: 'https://example.com/img.jpg' });
0.4.2 / 2018-09-11
0.4.1 / 2018-09-10
- [new] add new getter and api methods:
event.isFirstLayerComment;
client.getComment(commentId);
client.getLikes(objectId);
context.getComment();
context.getLikes();
await context.canReplyPrivately;
0.4.0 / 2018-09-10
- [new] Bump deps
bottender: ^0.15.6
messaging-api-messenger: ^0.7.6
0.3.4 / 2018-01-17
- [changed] Use event
pageId
getter and remove_getRawEventsFromRequest
(#30)
0.3.3 / 2018-01-16
0.3.2 / 2017-12-14
- [new] Rename package to
bottender-facebook
- [fix] Use get page fields=access_token to retrieve access_token (#20)
0.3.1 / 2017-12-05
- [new] Add
event.isSentByPage
- [fix] Prevent from calling
sendPrivateReply
,sendComment
to page itself
0.3.0 / 2017-12-01
- [new] Export
FacebookClient
,FacebookContext
,FacebookEvent
- [new] Add multiple pages support via
mapPageToAccessToken
0.2.1 / 2017-11-29
- [fix] Fixed some bugs to support Bottender 0.14