Actions2
- Tin nhắn Actions
Overview
This node is a custom integration designed as a testing or experimental version for interacting with Facebook Messenger functionalities. It allows users to send messages and images to Facebook friends via specified Facebook pages. The node is useful in scenarios where automated communication through Facebook Messenger is needed, such as customer support bots, marketing campaigns, or notification systems.
Practical examples:
- Sending an image along with a message to a specific Facebook friend.
- Sending plain text messages to friends linked to a Facebook page.
- Automating outreach or updates to contacts on Facebook Messenger.
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 invited to visit the provided URL for the latest information. |
| Workspace ID | The identifier of the workspace context in which the operation is performed. Required when searching by workspace or related service/staff IDs. Placeholder example: "4378218000009548412". |
Note: The bundled code references additional properties like resource and operation, but these were not included in the provided property definitions. The main resource option available is "Danh sách chức năng của tin nhắn" (Message function list), with operations such as sending messages or images.
Output
The node outputs JSON data structured as follows:
success: A boolean indicating whether the operation was successful.response: The raw response from the Facebook API call, containing details about the sent message or image.
Each output item is paired with the input item index it corresponds to (pairedItem.item).
If binary data is involved (e.g., sending images), the node uses helper methods to retrieve the binary content from the input data, encode it appropriately, and include it in the request body.
Dependencies
- Requires an API authentication token credential for Facebook OAuth2 API access.
- Uses HTTP requests to Facebook's API endpoints for sending messages and images.
- The node depends on n8n's helper functions to handle binary data extraction and HTTP requests.
- No other external services or environment variables are explicitly required beyond the Facebook API credentials.
Troubleshooting
Common issues:
- Invalid or expired Facebook API tokens will cause authentication failures.
- Incorrect
facebook_page_idorfriend_uidvalues may result in errors or failed message delivery. - Missing or improperly formatted binary data fields when sending images can cause request failures.
Error messages:
- Authentication errors typically indicate invalid credentials; re-authenticate or update the API key.
- API response errors may include rate limiting or permission issues; ensure the Facebook app has the necessary permissions.
- If the node throws errors related to missing parameters, verify that all required inputs (like
messenger_friend_id,facebook_page_id, and message content) are correctly set.
Resolution tips:
- Double-check all input parameters for correctness.
- Ensure the Facebook page and friend IDs are valid and accessible.
- Confirm that the binary field used for images contains valid image data.
- Use the provided notice link to check for updates or known issues.
Links and References
- Facebook Messenger Platform Documentation
- Facebook Graph API Reference
- n8n Documentation on Credentials and HTTP Requests
- Experimental version info and updates: https://zalo.me/g/ebsiof941
