Am able to send image or Card back on /webhook route because sender is included in request object. But sender is not included in /ai (fulfillment webhook url).
request({
url: 'https://graph.facebook.com/v2.6/me/messages',
qs: {access_token:token},
method: 'POST',
json: {
recipient: {id:sender},
message: messageData,
}
But, my fulfillment route is /ai and the REQ body does not include the sender, so I always get this error where trying to send back anything but just text.
Error: { message:
'(#100) Message cannot be empty, must provide valid attachment or text', type: 'OAuthException’,