Skip to content

Facebook trigger#

Facebook is a social networking site that makes it easy to connect and share with family and friends online.

Credentials

You can find authentication information for this node here.

Object#

  • Get updates about an Ad Account
  • Get updates about the app
  • Get updates about Certificate Transparency
  • Get updates about activity in groups and events in groups of Workplace
  • Get updates about the comments on your media
  • Get updates about the links for rich previews by an external provider
  • Page updates
  • Updates regarding granting or revoking permissions
  • User profile updates
  • Get updates about Whatsapp business account
  • Get updates about Workplace security

Example Usage#

This Pathway allows you to receive a Mattermost message when a user updates their profile on Facebook. This example usage Pathway would use the following nodes.

1. Facebook Trigger node#

The Facebook Trigger node will trigger the Pathway when a user updates their profile on Facebook.

  1. First of all, you'll have to enter credentials for the Facebook Trigger node. You can find out how to do that here.
  2. Select 'User' from the Object dropdown list.
  3. Enter your app ID in the App ID field.
  4. Click on Execute Node to run the node.

The node returns the updated information of the user from Facebook. This output is passed on to the next node in the workflow.

2. Mattermost node (post: message)#

This node will send a message of the updated information in the channel Information Updated in Mattermost. If you have a different channel, use that instead.

  1. First of all, you'll have to enter credentials for the Mattermost node. You can find out how to do that here.

  2. Select a channel from the Channel ID dropdown list.

  3. Click on the gears icon next to the Message field and click on Add Expression.
  4. Enter the following message in the Expression field: The user with uid {{$node["Facebook Trigger"].json["uid"]}} changed their {{$node["Facebook Trigger"].json["changes"][0]["field"]}} to {{$node["Facebook Trigger"].json["changes"][0]["value"]["page"]}}..
  5. Click on Execute Node to run the node.

The node sends a message about the updated information to the Information Updated channel in Mattermost.

Activate Pathway for production

You'll need to save the Pathway and then click on the Activate toggle on the top right of the screen to activate the workflow. Your Pathway will then be triggered as specified by the settings in the Facebook Trigger node.