Facebook Page Actions icon

Facebook Page Actions

Complete Facebook API integration - Posts, Comments, Messages, Insights & More

Message → Send Text Message

AI-generated

Overview

This node allows sending a text message via Facebook Messenger from a selected Facebook Page to a specified recipient. It is useful for automating communication with users who have interacted with your Facebook Page, such as sending notifications, customer support messages, or marketing content.

Use Case Examples

  1. Send a welcome message to a user who just started a conversation with your Facebook Page.
  2. Automate sending order updates or appointment reminders to customers via Messenger.

Properties

Name Meaning
Page The Facebook Page from which the message will be sent. This is selected from the pages accessible by the connected Facebook account.
Recipient ID The ID of the recipient user to whom the text message will be sent. This is selected from the list of users who have interacted with the page.
Message Text The text content of the message to be sent to the recipient.

Output

JSON

  • success - Indicates if the message was sent successfully
  • message - Status message describing the result of the send operation
  • messageId - The unique ID of the sent message returned by Facebook
  • recipientId - The ID of the recipient to whom the message was sent
  • content
    • text - The text content of the sent message

Dependencies

  • Requires a Facebook OAuth2 API credential with permissions including pages_messaging and pages_show_list.

Troubleshooting

  • Common issues include invalid or expired access tokens, missing required permissions on the Facebook app, and attempting to send messages to recipients who have not previously messaged the page.
  • Error messages about invalid access tokens suggest reconnecting the Facebook account in the credential settings.
  • Errors indicating missing permissions or invalid recipient IDs usually mean the Facebook app lacks pages_messaging permission or the recipient has not initiated contact with the page.
  • If message sending fails with an error mentioning the recipient does not exist, the node attempts an alternative endpoint; if that also fails, it throws a detailed error suggesting possible causes and solutions.

Links

Discussion