src/main/java/com/messageyes/facebook/messenger/FacebookMessengerClient.java
public MessageResponse sendTextMessage(@NonNull String pageAccessToken, @NonNull String recipientId, @NonNull String messageText) throws FacebookMessengerSendException {
        checkArgument(StringUtils.isNotBlank(pageAccessToken), "pageAccessToken cannot be blank");
        checkArgument(StringUtils.isNotBlank(recipientId), "recipientId cannot be blank");
        checkArgument(StringUtils.isNotBlank(messageText), "messageText cannot be blank");

        OutboundMessage message = new OutboundMessage();
        message.setText(messageText);

        return sendOutboundMessage(pageAccessToken, recipientId, message);
    }
/**
     * Sends a text message to the given recipient.
     *
     * https://developers.facebook.com/docs/messenger-platform/send-api-reference/text-message
     */
Sends a text message to the given recipient.
Sends a text message to the given recipient .
public MessageResponse sendTextMessage(@NonNull String pageAccessToken, @NonNull String recipientId, @NonNull String messageText) throws FacebookMessengerSendException {
        checkArgument(StringUtils.isNotBlank(pageAccessToken), "pageAccessToken cannot be blank");
        checkArgument(StringUtils.isNotBlank(recipientId), "recipientId cannot be blank");
        checkArgument(StringUtils.isNotBlank(messageText), "messageText cannot be blank");
        OutboundMessage message = new OutboundMessage();
        message.setText(messageText);
        return sendOutboundMessage(pageAccessToken, recipientId, message);
    }
public MessageResponse sendTextMessage ( @ NonNull String pageAccessToken , @ NonNull String recipientId , @ NonNull String messageText ) throws FacebookMessengerSendException { checkArgument ( StringUtils . isNotBlank ( pageAccessToken ) , "pageAccessToken cannot be blank" ) ; checkArgument ( StringUtils . isNotBlank ( recipientId ) , "recipientId cannot be blank" ) ; checkArgument ( StringUtils . isNotBlank ( messageText ) , "messageText cannot be blank" ) ; OutboundMessage message = new OutboundMessage ( ) ; message . setText ( messageText ) ; return sendOutboundMessage ( pageAccessToken , recipientId , message ) ; }
Sends a text message to the given recipient.
Sends a text message to the given recipient .