You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 20, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/readme-facebook.md
+6-5
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ Table of Contents
21
21
*[Silent and No Notifications](#silent-and-no-notifications)
22
22
*[Messenger code API](#messenger-code-api)
23
23
*[Attachment upload API](#attachment-upload-api)
24
+
*[Handover Protocol](#handover-protocol)
24
25
*[Running Botkit with an Express server](#use-botkit-for-facebook-messenger-with-an-express-web-server)
25
26
26
27
## Getting Started
@@ -86,9 +87,9 @@ Normal messages will be sent to your bot using the `message_received` event. In
86
87
| facebook_optin | a user has clicked the [Send-to-Messenger plugin](https://developers.facebook.com/docs/messenger-platform/implementation#send_to_messenger_plugin)
87
88
| facebook_referral | a user has clicked on a [m.me URL with a referral param](https://developers.facebook.com/docs/messenger-platform/referral-params)
88
89
| facebook_app_roles | This callback will occur when a page admin changes the role of your application.
89
-
| facebook_standby | This callback will occur when a message has been sent to your page, but your application is not the current thread owner.
90
-
| facebook_pass_thread_control | This callback will occur when thread ownership for a user has been passed to your application.
91
-
| facebook_take_thread_control | This callback will occur when thread ownership for a user has been taken away from your application.
90
+
| standby | This callback will occur when a message has been sent to your page, but your application is not the current thread owner.
91
+
| facebook_receive_thread_control | This callback will occur when thread ownership for a user has been passed to your application.
92
+
| facebook_lose_thread_control | This callback will occur when thread ownership for a user has been taken away from your application.
92
93
93
94
All incoming events will contain the fields `user` and `channel`, both of which represent the Facebook user's ID, and a `timestamp` field.
94
95
@@ -597,7 +598,7 @@ Allows the Primary Receiver app to take control of a specific thread from a Seco
597
598
598
599
- To thread control :
599
600
```javascript
600
-
controller.api.handover.take_thread_control('PSID', 'String to pass to the secondary receiver', function (result) {
601
+
controller.api.handover.take_thread_control('<RECIPIENT_PSID>', 'String to pass to pass to the secondary receiver', function (result) {
601
602
// result = {"success":true}
602
603
});
603
604
```
@@ -608,7 +609,7 @@ Allows you to pass thread control from your app to another app.
608
609
609
610
- To pass thread control :
610
611
```javascript
611
-
controller.api.handover.pass_thread_control('PSID', '123456789', 'String to pass to the secondary receiver app', function (result) {
612
+
controller.api.handover.pass_thread_control('<RECIPIENT_PSID>', '<TARGET_PSID>', 'String to pass to the secondary receiver app', function (result) {
0 commit comments