ibm-early-programs / node-red-contrib-facebook-messenger-writer

Writer Node for Facebook Messenger
Apache License 2.0
1 stars 8 forks source link

Is it possible to attach an image when sending a message? #18

Open nicgord opened 2 years ago

nicgord commented 2 years ago

Would like to know if it is possible to send an image as the message or just send an image on its own...... maybe a node-red example?

thanks

chughts commented 2 years ago

The node looks at msg.payload and if it is a string sends that as message: {text: msg.payload} otherwise it sends it untouched as message: msg.payload. So you can send a message object as defined by the Facebook Messenger API. https://developers.facebook.com/docs/messenger-platform/reference/send-api/#message