From 8e9bc8343a31ee69c48eadb88091104652c0e6d0 Mon Sep 17 00:00:00 2001 From: Peter Swimm Date: Mon, 9 Jul 2018 10:28:38 -0500 Subject: [PATCH] Updated from Oaudie PRs https://github.com/howdyai/botkit/pull/1369 https://github.com/howdyai/botkit/pull/1354 https://github.com/howdyai/botkit/pull/1353 https://github.com/howdyai/botkit/pull/1406 --- docs/readme-facebook.md | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/docs/readme-facebook.md b/docs/readme-facebook.md index c4b0757..9d83f5a 100644 --- a/docs/readme-facebook.md +++ b/docs/readme-facebook.md @@ -441,6 +441,38 @@ Remove the home_url setting Get the home_url +### controller.api.messenger_profile.payment_settings() +| Argument | Description +|--- |--- +| payload | A JSON object with the properties `privacy_url`, `public_key`, `testers` + +View [the facebook documentation](https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/payment-settings) for more details. + +### controller.api.messenger_profile.delete_payment_settings() + +Remove the payment_settings setting + +### controller.api.messenger_profile.get_payment_settings() + +Get the payment_settings property of your bot's Messenger Profile + ++### controller.api.messenger_profile.payment_settings() ++| Argument | Description ++|--- |--- ++| payload | A JSON object with the properties `privacy_url`, `public_key`, `testers` ++ ++View [the facebook documentation](https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/payment-settings) for more details. ++ ++### controller.api.messenger_profile.delete_payment_settings() ++ ++Remove the payment_settings setting ++ ++### controller.api.messenger_profile.get_payment_settings() ++ ++Get the payment_settings property of your bot's Messenger Profile ++ + + ### Using the The Messenger Profile API ```js @@ -649,6 +681,36 @@ controller.api.handover.request_thread_control('', 'String to pa }); ``` +### Get Thread Owner + +Th Thread Owner API returns the app ID of the app the currently has thread control for a Page : + +- To get the app ID of the current thread owner : +```javascript +controller.api.handover.get_thread_owner('', function (result) { + +}); +``` + +### Cancel a Scheduled Broadcast + +- To cancel a scheduled broadcast : +```javascript +controller.api.handover.cancel_scheduled_broadcast('', function (result) { + +}); +``` + +### Get a Broadcast Status + +- To get a broadcast status : +```javascript +controller.api.handover.get_broadcast_status('', ['scheduled_time', 'status'], function (result) { + +}); +``` + + ## Messaging type You can identify the purpose of the message being sent to Facebook by adding `messaging_type: ` property when sending the message: