Facebook Workplace Teams Events

Cloud Elements currently supports events via polling or webhooks depending on the endpoint.

  • Polling is a mechanism where Cloud Elements executes the configured query every n minutes and captures the changed information.
  • Webhooks are when the provider lets Cloud Elements know what information has changed. 
Note: Additional endpoint setup may be required prior to creating your element instance.
Note: Cloud Elements normalizes only the objectId, objectType, and eventType event data. Event data also contains raw data, which the provider returns. The raw data varies based on the endpoint.

If you would like to see more information on our Events framework, please see Events Overview.

The Facebook Workplace element supports events via webhooks. In order to enable webhooks, add these extra configurations to your instance JSON:

"event.notification.enabled": "true",
"event.notification.callback.url": "<INSERT_YOUR_APPS_CALLBACK_URL>"

To provision your element with webhooks enabled, use the following JSON when calling the /instances API.

{
  "element": {
    "key": "facebookworkplace"
  },
  "configuration": {
    "access.token": "xxxxxxxx",
    "app.id": "xxxxxxxxx",
    "app.secret": "xxxxxxxxx",
    "event.notification.callback.url": "false",
    "event.notification.enabled": true,
    "event.vendor.type": "webhooks",
    "filter.response.nulls": "true",
    "webhook.fields": "mention,message_deliveries,messages,messaging_postbacks,message_reads|comments,posts,membership|status,events,message_sends|preview,collection",
    "webhook.objects": "page|group|user|link"
  },
 "tags": [
    "<INSERT_TAGS>"
  ],
  "name": "<INSERT_INSTANCE_NAME>"
}