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

Commit 8e9bc83

Browse files
author
Peter Swimm
authored
1 parent 3eaaf7f commit 8e9bc83

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

docs/readme-facebook.md

+62
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,38 @@ Remove the home_url setting
441441

442442
Get the home_url
443443

444+
### controller.api.messenger_profile.payment_settings()
445+
| Argument | Description
446+
|--- |---
447+
| payload | A JSON object with the properties `privacy_url`, `public_key`, `testers`
448+
449+
View [the facebook documentation](https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/payment-settings) for more details.
450+
451+
### controller.api.messenger_profile.delete_payment_settings()
452+
453+
Remove the payment_settings setting
454+
455+
### controller.api.messenger_profile.get_payment_settings()
456+
457+
Get the payment_settings property of your bot's Messenger Profile
458+
459+
+### controller.api.messenger_profile.payment_settings()
460+
+| Argument | Description
461+
+|--- |---
462+
+| payload | A JSON object with the properties `privacy_url`, `public_key`, `testers`
463+
+
464+
+View [the facebook documentation](https://developers.facebook.com/docs/messenger-platform/reference/messenger-profile-api/payment-settings) for more details.
465+
+
466+
+### controller.api.messenger_profile.delete_payment_settings()
467+
+
468+
+Remove the payment_settings setting
469+
+
470+
+### controller.api.messenger_profile.get_payment_settings()
471+
+
472+
+Get the payment_settings property of your bot's Messenger Profile
473+
+
474+
475+
444476
### Using the The Messenger Profile API
445477

446478
```js
@@ -649,6 +681,36 @@ controller.api.handover.request_thread_control('<RECIPIENT_PSID>', 'String to pa
649681
});
650682
```
651683

684+
### Get Thread Owner
685+
686+
Th Thread Owner API returns the app ID of the app the currently has thread control for a Page :
687+
688+
- To get the app ID of the current thread owner :
689+
```javascript
690+
controller.api.handover.get_thread_owner('<RECIPIENT_PSID>', function (result) {
691+
692+
});
693+
```
694+
695+
### Cancel a Scheduled Broadcast
696+
697+
- To cancel a scheduled broadcast :
698+
```javascript
699+
controller.api.handover.cancel_scheduled_broadcast('<BROADCAST_ID>', function (result) {
700+
701+
});
702+
```
703+
704+
### Get a Broadcast Status
705+
706+
- To get a broadcast status :
707+
```javascript
708+
controller.api.handover.get_broadcast_status('<BROADCAST_ID>', ['scheduled_time', 'status'], function (result) {
709+
710+
});
711+
```
712+
713+
652714
## Messaging type
653715

654716
You can identify the purpose of the message being sent to Facebook by adding `messaging_type: <MESSAGING_TYPE>` property when sending the message:

0 commit comments

Comments
 (0)