Actions2
- Tin nhắn Actions
Overview
This node operation allows sending an image message via Facebook Messenger to a specified recipient. It is designed for scenarios where users want to automate the delivery of image content through Facebook Pages to individual Messenger users. Typical use cases include customer support, marketing campaigns, or notifications that require visual content.
For example, a business can use this node to send promotional images directly to customers who have interacted with their Facebook Page, or to deliver personalized image-based updates.
Properties
| Name | Meaning |
|---|---|
| Dữ liệu ảnh dạng data | The binary data field name containing the image data to be sent. |
| Facebook Page | The Facebook Page ID from which the message will be sent. |
| Id người nhận | The recipient's Messenger user ID (friend ID). |
| Nội dung tin nhắn | The text content accompanying the image message. |
Note: Some properties like Workspace ID, Service ID, and Staff ID appear in the property list but are not relevant to this specific Resource-Operation combination ("Tin nhắn" - "Gửi tin nhắn ảnh") based on display options.
Output
The node outputs JSON data representing the response from the API call to send the image message. This typically includes confirmation details such as message IDs or status indicators confirming successful delivery.
If an error occurs, the output JSON contains an error field describing the issue, along with the paired input item index.
The node does not output binary data.
Dependencies
- Requires a valid Facebook Page access token or API key credential configured in n8n to authenticate requests.
- Depends on the Facebook Messenger API endpoint for sending image messages.
- Uses HTTP request functionality within n8n to perform API calls.
- May require environment variables or credentials set up for workspace, service, or staff context if integrated into a larger system, though these are not explicitly used here.
Troubleshooting
Common Issues:
- Invalid or missing Facebook Page ID: Ensure the correct Page ID is selected or entered.
- Incorrect recipient Messenger ID: Verify the recipient's Messenger friend ID is accurate.
- Missing or invalid binary image data: Confirm the binary data field contains valid image data.
- Authentication errors: Check that the API key or token credential is properly configured and has necessary permissions.
- API rate limits or restrictions from Facebook.
Error Messages:
- Errors returned from the Facebook API will be included in the output under the
errorfield. - If the binary data is missing or invalid, the node may throw an error indicating the absence of required image data.
- Authentication failures will result in errors related to permission denied or invalid credentials.
- Errors returned from the Facebook API will be included in the output under the
Resolution Steps:
- Double-check all input parameters for correctness.
- Validate the binary data input contains proper image content.
- Re-authenticate or update API credentials if authentication errors occur.
- Review Facebook API usage limits and ensure compliance.
Links and References
- Facebook Messenger Platform - Send API
- n8n Documentation - Creating Custom Nodes
- Handling Binary Data in n8n
Note: The source code provided was heavily obfuscated, limiting detailed static analysis. The summary above is based on the available property definitions, typical usage patterns, and standard practices for sending image messages via Facebook Messenger APIs.