Closed LockeZz closed 3 years ago
okay. I manage to find the problem. It seems that the environment variable in the library was set to ENV['APP_SECRET'], which required me to follow the same definition as it. Hope this hellp whoever encounter similar problem as mine
Dear all, Im quite new to rails so please bear with me.
I have been trying to work out in setting up facebook graph api with devise, koala, omniauth and facebook messenger. Due to the facebook only accept one callback url, I was trying to find a way to do the liveupdate part and send the params to facebook-messenger so that the chatbot will work. It seems that I was stucked with this recent error as mention in the title which apparently came from here:
/home/hfpang/.rvm/gems/ruby-3.0.1/gems/facebook-messenger-2.0.1/lib/facebook/messenger/configuration/app_secret_proof_calculator.rb:7:in `hexdigest': no implicit conversion of nil into String (TypeError)
Took me awhile to find the source though, at first it was pointed to the part where "message.reply(text: "test message')" in the heroku logs.
Would appreciate for any helpful advice.