Open Guillaumejfrt opened 7 years ago
Can you show me your controller code? On Jul 28, 2017, at 6:39 AM, Guillaumejfrt notifications@github.com<mailto:notifications@github.com> wrote:
and also the routes
On Jul 28, 2017, at 6:57 AM, Outlook amre.abdelhady@outlook.com<mailto:amre.abdelhady@outlook.com> wrote:
Can you show me your controller code? On Jul 28, 2017, at 6:39 AM, Guillaumejfrt notifications@github.com<mailto:notifications@github.com> wrote:
@amronrails I found my mistake. In fact, I am using facebook-messenger gem so I realised I do not need to create a controller and a controller method to answer facebook challenge. The gem is dealing with it.
Sorry for disturbing you. Your video still helps me.
Have a nice day. Guillaume
Hi,
I have just followed all your process through the youtube, however I still have the same message when I try to edit the webhook (I say "edit" because I succeeded in validating the webhook the first time without any controller method, but I disconnected ngrok so I have to edit the callback url):
render text: params["hub.challenge"]
does not work correctly since Facebook receives html: "\u003C!DOCTYPE html>\n\u003Chtm..." or an empty string: "\n" if I addlayout:false
at the end of therender
. I am not able to render to Facebook whathub.challenge
contains.Could you help resolve this bug? Thanks a lot Guillaume