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

Commit 8663cb0

Browse files
author
Peter Swimm
authoredApr 16, 2018
Merge pull request #1323 from jganseman/master
Fix #1322 (update facebook docs)
2 parents 45e3d7c + 6f09773 commit 8663cb0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
 

‎docs/readme-facebook.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,10 @@ Normal messages will be sent to your bot using the `message_received` event. In
9393
| facebook_optin | a user has clicked the [Send-to-Messenger plugin](https://developers.facebook.com/docs/messenger-platform/implementation#send_to_messenger_plugin)
9494
| facebook_referral | a user has clicked on a [m.me URL with a referral param](https://developers.facebook.com/docs/messenger-platform/referral-params)
9595
| facebook_app_roles | This callback will occur when a page admin changes the role of your application.
96-
| standby | This callback will occur when a message has been sent to your page, but your application is not the current thread owner.
97-
| facebook_receive_thread_control | This callback will occur when thread ownership for a user has been passed to your application.
98-
| facebook_lose_thread_control | This callback will occur when thread ownership for a user has been taken away from your application.
96+
| standby | This callback will occur when a message has been sent to your page, but your application is not the current thread owner. (Subscribe to the `standby` webhook to receive this event.)
97+
| facebook_receive_thread_control | This callback will occur when thread ownership for a user has been passed to your application. (Subscribe to the `messaging_handovers` webhook to receive this event.)
98+
| facebook_lose_thread_control | This callback will occur when thread ownership for a user has been taken away from your application. (Subscribe to the `messaging_handovers` webhook to receive this event.)
99+
| facebook_request_thread_control | This callback will occur when thread ownership is requested by another receiver. (Subscribe to the `messaging_handovers` webhook to receive this event.)
99100

100101
All incoming events will contain the fields `user` and `channel`, both of which represent the Facebook user's ID, and a `timestamp` field.
101102

‎lib/Facebook.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ function Facebookbot(configuration) {
11521152
cb(body.error);
11531153
}
11541154
} else {
1155-
facebook_botkit.debug('Successfully past thread control', body);
1155+
facebook_botkit.debug('Successfully passed thread control', body);
11561156
if (cb) {
11571157
cb(null, body);
11581158
}

0 commit comments

Comments
 (0)
This repository has been archived.