Skip to content

Commit

Permalink
Merge pull request Charca#95 from Charca/bug/handleFacebookMessage-docs
Browse files Browse the repository at this point in the history
Fix wrong name on handleFacebookData docs
  • Loading branch information
mraaroncruz authored Dec 14, 2017
2 parents d16c500 + 4bc8965 commit b3e6ef7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ You may only want to use bootbot for the Facebook related config and the simple

Or maybe you don't want to use express but a different HTTP server.

#### `.handleFacebookMessage(data)`
#### `.handleFacebookData(data)`

Use this to send a message from a parsed webhook message directly to your bot.

Expand All @@ -751,10 +751,10 @@ myNonExpressRouter.get("/mywebhook", (data) => {
messages.forEach(message => {
switch(data.entry.id) {
case LINUX_BOT_PAGE_ID:
linuxNewsBot.handleFacebookMessage(message);
linuxNewsBot.handleFacebookData(message);
break;
case APPLE_BOT_PAGE_ID:
appleNewsBot.handleFacebookMessage(message);
appleNewsBot.handleFacebookData(message);
break;
// ...
};
Expand Down

0 comments on commit b3e6ef7

Please sign in to comment.