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

        MessageRequest messageRequest = new MessageRequest();
        User recipient = new User();
        recipient.setId(recipientId);
        messageRequest.setRecipient(recipient);
        messageRequest.setMessage(message);

        return sendMessageRequest(pageAccessToken, messageRequest);
    }
/**
     * Sends a message to the given recipient. The {@link OutboundMessage} is not validated in any
     * way. It is up to the caller to ensure that the attributes set on the OutboundMessage represent
     * a valid request payload that Facebook will accept.
     */
Sends a message to the given recipient. The  OutboundMessage is not validated in any
way. It is up to the caller to ensure that the attributes set on the OutboundMessage represent
a valid request payload that Facebook will accept.
Sends a message to the given recipient . The OutboundMessage is not validated in any way . It is up to the caller to ensure that the attributes set on the OutboundMessage represent a valid request payload that Facebook will accept .
public MessageResponse sendOutboundMessage(@NonNull String pageAccessToken, @NonNull String recipientId, @NonNull OutboundMessage message) throws FacebookMessengerSendException {
        checkArgument(StringUtils.isNotBlank(pageAccessToken), "pageAccessToken cannot be blank");
        checkArgument(StringUtils.isNotBlank(recipientId), "recipientId cannot be blank");
        MessageRequest messageRequest = new MessageRequest();
        User recipient = new User();
        recipient.setId(recipientId);
        messageRequest.setRecipient(recipient);
        messageRequest.setMessage(message);
        return sendMessageRequest(pageAccessToken, messageRequest);
    }
public MessageResponse sendOutboundMessage ( @ NonNull String pageAccessToken , @ NonNull String recipientId , @ NonNull OutboundMessage message ) throws FacebookMessengerSendException { checkArgument ( StringUtils . isNotBlank ( pageAccessToken ) , "pageAccessToken cannot be blank" ) ; checkArgument ( StringUtils . isNotBlank ( recipientId ) , "recipientId cannot be blank" ) ; MessageRequest messageRequest = new MessageRequest ( ) ; User recipient = new User ( ) ; recipient . setId ( recipientId ) ; messageRequest . setRecipient ( recipient ) ; messageRequest . setMessage ( message ) ; return sendMessageRequest ( pageAccessToken , messageRequest ) ; }
Sends a message to the given recipient.
Sends a message to the given recipient .