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

Commit

Permalink
Updated from Oaudie PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Swimm authored Jul 9, 2018
1 parent 3eaaf7f commit 8e9bc83
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions docs/readme-facebook.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -649,6 +681,36 @@ controller.api.handover.request_thread_control('<RECIPIENT_PSID>', '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('<RECIPIENT_PSID>', function (result) {

});
```

### Cancel a Scheduled Broadcast

- To cancel a scheduled broadcast :
```javascript
controller.api.handover.cancel_scheduled_broadcast('<BROADCAST_ID>', function (result) {

});
```

### Get a Broadcast Status

- To get a broadcast status :
```javascript
controller.api.handover.get_broadcast_status('<BROADCAST_ID>', ['scheduled_time', 'status'], function (result) {

});
```


## Messaging type

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

0 comments on commit 8e9bc83

Please sign in to comment.