-
Notifications
You must be signed in to change notification settings - Fork 9
can't reproduce examples #21
Comments
Yep it looks like that should work just fine, if you're in group messages. If you'd like to listen for both Group and Personal messages for example, you can do something like this. const Observable = require('rxjs').Observable;
Observable.merge(bot.on('Group'), bot.on('Person'))
.subscribe((data) => {...}) We'll be adding a method in the future as something like |
Huh. Tried adding this lines, no difference though. Yeah, the fb app authtorize when it hits the webhook, it's
Also, when I deploy, heroku logs this. For what I've seen of broidkit's code, looks like just a building log I made the repository public if you want to check it out. I think I have all the dependencies. |
This code should work. Do you have any other logs/info to help you? |
Sadly I don't have anymore logs Started to think that could be something with heroku. Could it be? huh if it helps: my heroku logs from todays attempts. The log file is much larger, but these lines repeats on and on 2017-07-05T08:56:38.708829+00:00 heroku[web.1]: State changed from crashed to starting |
thanks, we will check. I think it's something around this log line:
I understand better the issue, it's something around this line: L221 Can you please try to log the |
Hey! I gave up on heroku and started to https tunneling my localhost env, much better. Now I have a lot of logs for you :) Here's the log on req at the facebook auth webhook, when I first create the webhook on fb dev page. I also added a console.log(req) at the @edit: the log on router.post does log, but took a little bit of time to... Here it is: router.post log @edit: here is my rindex.js file
|
Today I tried to replicate it in another enviroment, this time at my workplace. Here is the log of the req prop in router.post method. I tought it had something to do with the fb app privileges so I checked every permission box possible and still the same problem. @edit: Could it be something with express server? How do I use the natural bot router system? Here what would be the host? @edit 2: yup, it was something with express server. Tried this and worked perfectly
` @edit 3: It's working as expect until now. But, I'm getting this error in console: https://pastebin.com/1Tm5FJs8 |
Hi, I got the same issue as you when deploying on Heroku. const bot = new Bot({ |
Hello. I didn't know where to ask this, sorry if this isn't the place for it.
I'm trying to reproduce the examples on the readme file, but despite my efforts, I cant. I first created an app on heroku, then created a simple bot directly using methods that fb gives in its documentation. Now i'm trying to make broid-kit work but looks like i'm missing something.
index.js on heroku
This should return a message at every message sent, right?
The text was updated successfully, but these errors were encountered: