Setup Webhook #60
Replies: 3 comments 10 replies
-
in the code on the controller class if you are specifying a custom route using HttpGet/HttpPost attribute or Route attribute |
Beta Was this translation helpful? Give feedback.
-
My sincere appologies, I have noticed today that you have a Controller: WhatsAppNotificationController [HttpGet("receive/TextMessage")] [HttpPost("receive/TextMessage")] Now the very simple controller I added above "TalkToMeController" has I was able to congif my FB WebHook "myappURL/home/talktome" and all worked well, But i want to switch over to this Controller you have in your code.. Please advise |
Beta Was this translation helpful? Give feedback.
-
Maybe I am too new to this Web stuff ;-)
I have now tried the following URLs Finally I got https://asdf.com/api/WhatsAppNotification/receive/TextMessage to work So, I have changed my FB Webhook to point to this address and it was able to authenticate. I have sent a template and a standard Text message from my Temp Number to my personal Cell, and replied from my personal Cell to these messages. |
Beta Was this translation helpful? Give feedback.
-
Hi Gabriel
Now the solution is working fine from the sense it sends WhatsApp messages, the solution is hosted on https://print-ley.com/whatsapp
Now from Webhook perspective, and from meta configuration to setup a subscription to the Call Back URL, i put the same URL above, but obviously that URL is wrong and it through error as below
“The URL couldn't be validated. Response does not match challenge, expected value="427564319", received="\u003C!DOCTYPE html>\n\u003Ch..."
I believe the URL is incorrect, and it should be the route I have to define in my API project, the question here
How can I define this Route, is it in configuration file? Is it in the code?
Beta Was this translation helpful? Give feedback.
All reactions