Open domi-a opened 1 year ago
Hi there - is there a simple guide of how to test/get this working in NodeRed?
I've got my api and phoneid - and from the meta dev webpage. The curl post command works as well from the Webpage.
I tried using the wca_send_msg_node - and setup wca_config_node with the provided api and phoneid, but I'm not receiving any msgs. I just used a trigger with "hello" as the msg.payload in an inject node connected to the wca_send_msg_node. Debug output says "Node tried to send a message of type string"
Any help would be greatly appreciated.
if you can curl it, why not simply use a http request node in node-red? that should provide an easy way to debug it and is also an easy way to reach meta-api through node red.
if you can curl it, why not simply use a http request node in node-red? that should provide an easy way to debug it and is also an easy way to reach meta-api through node red.
I'm not super familiar with how to set it up. This is the curl code provided by meta in their interface. Does that mean you wouldn't need this NodeRed Integration then? I'm looking for a simple drag and drop - where I can just pass in a string msg.payload where it just sends the string message to the desired phone number.
curl -i -X POST https://graph.facebook.com/v18.0/2_________________3__5/messages
-H 'Authorization: Bearer EAAOO_____5WQkm0xXq____oebG8e4__SulWQ' -H 'Content-Type: application/json'
-d '{ \"messaging_product\": \"whatsapp\", \"to\": \"\", \"type\": \"template\", \"template\": { \"name\": \"hello_world\", \"language\": { \"code\": \"en_US\" } } }'
hi,
i got it working i can send messages to my phone. als well as sending with this module or by curl i can only send messages for about 24hours, then nothing arrives on my phone anymore. untill i send a message back to my application.
im using a permanent access-token, so nothing related to that 24h token thing. sending no message from whatsapp on my phone to the application for ~24hours the request still responds with 200 [ { input: '+xxxxxx', wa_id: 'xxxxxxx' } ], but no messages arrives on my phone. i am using the test phone number for sending - i read that this behavior will not occour with a production number. but that will cost money. i read for hours in the facebook documentation, but this isnt mentioned anywhere.
how did you manage to get around this?