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

Commit

Permalink
Add an exaample of how geting messenger code
Browse files Browse the repository at this point in the history
  • Loading branch information
ouadie-lahdioui committed Mar 3, 2017
1 parent 983c03b commit 4f4fcc1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions readme-facebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,21 @@ reply_message = {
bot.reply(message, reply_message)
```


## Messenger code API

Messenger Codes can be scanned in Messenger to instantly link the user to your bot, no typing needed. They're great for sticking on fliers, ads, or anywhere in the real world where you want people to try your bot.

```javascript
controller.api.get_messenger_code(2000, function (err, uri) {
if(err) {
// Error
} else {
// uri
}
});
```

## Thread Settings API

Facebook offers a "Thread Settings" API to customize special bot features
Expand Down

0 comments on commit 4f4fcc1

Please sign in to comment.