Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Add documentattion
Browse files Browse the repository at this point in the history
  • Loading branch information
ouadie-lahdioui committed Aug 17, 2017
1 parent 054603f commit 32f5727
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/readme-facebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,6 +539,28 @@ var attachment = {

```

## Message Tags

Adding a tag to a message allows you to send it outside the 24+1 window.

View the facebook [documentation](https://developers.facebook.com/docs/messenger-platform/messenger-profile/home-url) for more details.

- Get all tags :
```javascript
controller.api.tags.get_all(function (tags) {
// use tags.data
});
```

- Send a tagged message :
```javascript
var taggedMessage = {
"text": "Hello Botkit !",
"tag": "RESERVATION_UPDATE"
};
bot.reply(message, taggedMessage);
```


## Use BotKit for Facebook Messenger with an Express web server
Instead of the web server generated with setupWebserver(), it is possible to use a different web server to receive webhooks, as well as serving web pages.
Expand Down

0 comments on commit 32f5727

Please sign in to comment.