Actions21
- Message Actions
- Page Actions
- User Actions
- Group Actions
- Comment Actions
- Facebook Id Actions
- Media Actions
- Test Proxy Actions
Overview
This node sends an image message from a Facebook page to a recipient using the recipient's Facebook ID. It supports sending a local image file along with an optional text message. This is useful for automating Facebook page interactions, such as customer support or marketing campaigns, where sending images directly to users is required.
Use Case Examples
- Sending a promotional image from a Facebook page to a user who interacted with the page.
- Sending a product image along with a description to a customer via Facebook Messenger.
Properties
| Name | Meaning |
|---|---|
| Page Id | The Facebook Page ID from which the image message will be sent. Required for identifying the sending page. |
| Recipient Id | The Facebook ID of the recipient user who will receive the image message. Required to specify the message recipient. |
| Text (Optional) | Optional text message to send along with the image. This can be used to provide context or description for the image. |
| Image Path | Local file path to the image to send. This is the image file that will be uploaded and sent to the recipient. Required. |
Output
JSON
json- The JSON response from the Facebook API after sending the image message, containing details about the sent message.
Dependencies
- Requires an API key credential for Facebook Page access to authenticate and send messages.
Troubleshooting
- Ensure the Page Id and Recipient Id are correct and correspond to valid Facebook entities.
- Verify that the image path points to a valid local image file accessible by the node.
- Check that the Facebook Page has the necessary permissions to send messages to the recipient.
- If the message fails, inspect the error message returned by the Facebook API for details such as permission issues or invalid IDs.
- Run the node locally or on a VPS located in the same country as the Facebook account IP to avoid checkpoint issues as noted in the node's notice property.
Links
- Facebook Messenger Platform - Send Messages - Official Facebook documentation on sending messages via the Messenger Platform.