rampatra / jbot

Make Slack and Facebook Bots in Java.
GNU General Public License v3.0
1.2k stars 352 forks source link

Not able to post replies #192

Closed jazzbaul closed 3 years ago

jazzbaul commented 3 years ago

Whenever I send a message to the bot, jbot receives the message but can not post replies. I get this error: Error in fb webhook: Callback: {"object":"page","entry":[{"id":"149675545126708","time":1623147357649,"messaging":[{"sender":{"id":"1413229905427639"},"recipient":{"id":"149675545126708"},"timestamp":1623147357441,"message":{"mid":"m_7mUYTJGGj5JarAxOFNNrYb_LxK2Qt0pCcDJLXA5s1A_kAh7cEDG0EV6buL5TxpGjkDd-h1dvxhpR83J6ekttEg","text":"hey"},"type":"MESSAGE"}]}]}

It throws this exception: Exception:

org.springframework.web.client.HttpClientErrorException: 400 Bad Request at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) ~[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]

Anyone else faced this?

jazzbaul commented 3 years ago

Problem with authtoken not written correctly. solved