PhoAi.Vn - FacebookTrigger icon

PhoAi.Vn - FacebookTrigger

Starts the workflow when FacebookTrigger events occur

Overview

This node acts as a trigger for Facebook Page events. It listens to updates or activities on a specified Facebook Page and triggers the workflow when such events occur. This is useful for automating responses or processing data based on real-time Facebook Page interactions, such as new posts, comments, or messages.

Practical examples include:

  • Automatically responding to comments or messages on a Facebook Page.
  • Logging Facebook Page activity into a CRM system.
  • Triggering notifications or alerts when specific events happen on the page.

Properties

Name Meaning
Đây là phiên bản Thử nghiệm Chúng tôi sẽ liên tục cập nhât và sửa lỗi.
Mời bạn truy cập https://zalo.me/g/ebsiof941 để cập nhật thông tin mới nhất
A notice informing users that this is an experimental version of the node with ongoing updates and bug fixes. Users are encouraged to visit the provided link for the latest information.
Facebook Page Select the Facebook Page to listen to. You can choose from a list of pages or enter the page ID manually.

Output

The node outputs JSON data representing the event payload received from Facebook when the webhook is triggered. The structure corresponds to the Facebook event data, which may include details about posts, comments, messages, or other page activities.

Binary data output is not indicated in the code; the output is purely JSON-based event data.

Dependencies

  • Requires an API key credential for authenticating with Facebook's API.
  • Needs proper configuration of the webhook URL in Facebook to receive events.
  • The node uses HTTP requests to Facebook's subscription endpoints to create, check, and delete webhook subscriptions.
  • The user must have appropriate permissions on the Facebook Page to set up webhook subscriptions.

Troubleshooting

  • Webhook subscription failures: If the node cannot create or verify the webhook subscription, ensure the API credentials are correct and have sufficient permissions.
  • No events triggering: Verify that the Facebook Page ID is correct and that the webhook URL is properly registered and reachable by Facebook.
  • Permission errors: Make sure the Facebook account used has admin rights on the selected Facebook Page.
  • Invalid JSON or unexpected payloads: Check that the incoming Facebook events conform to expected formats and that the node's webhook path matches the configured URL.

Links and References

Discussion