Get Supported Features
To ensure that your bot will work properly on the version of Messenger that the user has, you can call getSupportedFeatures() to get a list of features that are supported on the current client returned as an array of strings.
If a feature you depend on is not available, you can use this opportunity to fail gracefully with a message telling the user to upgrade.
<script>
MessengerExtensions.getSupportedFeatures(function success(result) {
var features = result.supported_features;
}, function error(err) {
});
</script>
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
success callback | This function will be called if the call is successful. | function | Yes |
error callback | This function will be called if there is an error. | function | Yes |
Features
| Feature Name | Description |
|---|---|
| Whether payments is supported on this client. |
| Using |
| Using |
| Sharing open graph messages is available. |
|
|