facebook webhook not receiving messages via messenger - node.js

So I'm tryin to get messages via messenger webhook. It is working well locally but when I try to send a message through messenger the callback(which is Heroku) isn't happening.
I was sending the messages with an account which had no role in the app and which was also a developer account which had Admin role.
I have subscribed to messages, messaging_postbacks, message_deliveries, message_reads, message_echoes, standby events for my webhook and added my page to it. I dont necessarily think im missing anything.
...a little help Captain??
Edit: I am now obtaining messages sent by clicking test button, but not when other developer accounts sent message through messenger

Related

only messages from my facebook profile to the bot triggers the call to my webhook

I followed this twilio tutorial on how to set up facebook messenger. However this bot only triggers my webhook when I send a message to it on my facebook profile. The webhook I set up isn't called at all when any other facebook user sends a message to my bot.
I've tried getting the other user to follow and like the bot's page and also getting the bot to reply back. It seems only messages from my facebook profile to the bot triggers the call to my webhook. how can I fix this?
You can fix it by submitting your app for review.
Before you do that, it will only work for user accounts that have a role in the app.
https://developers.facebook.com/docs/messenger-platform/submission-process and https://developers.facebook.com/docs/app-review
provide more detailed information on the whole process.

Bot works in Web Chat but not in Teams channel

I have created a sample Teams app with bot feature, cloning from https://github.com/OfficeDev/microsoft-teams-sample-complete-node/tree/master/src. It is running locally, using ngrok tunnel, and the bot is registered on Azure Bots Channel Registration.
The "Test in Web Chat" on Azure works fine, when I initiate the chat the bot sends a welcome message. When I type "hello" the bot responds with "Hello".
When I enable the Microsoft Teams channel, I click on the link on the channels page which brings me to a 1-to-1 conversation with the bot. The browser console already prints errors:
browser screenshot
When I type "hello" in the chat, the chat jumps to "Just me" channel. Bot only replies with welcome message, but not the expected "Hello": chat screenshot
The local ngrok shows conversationUpdate reaching the bot, which I suppose triggers the welcome message, but there is no text message reaching ngrok: ngrok sreenshot
The documentation Talk to your bot directly by Id suggests I should be able to search inside Teams using the subscription id, but the bot cannot be found. Does that indicate a problem with how Teams channel is configured?
I tried packaging it into an app and import into teams, following the instructions in above sample repository. The app has tabs pointing to the same local ngrok tunneled service, these load successfully. But when i type in the conversation tab, the message disappears right away. Neither a converationUpdate nor the text message reach ngrok.
This is a Teams caching issue. If your bot is deployed as a full 'Web App Bot', you're going to have to delete and redeploy it. If it's deployed as a Web App with a matching Bot Channels Registration, you can just delete the Bot Channels Registration and recreate it. It's now permanently tied to 'Just Me' and even if it's fixed, the conversation will never show up in it's own chat, and will remain in 'Just Me'.

How to send bot message to all inactive player webhook facebook messenger

I am new to facebook messenger(Webhook). I am using Nodejs and Heroku for sending bot message.
My requirement is to send message to all inactive player at once via
Page Access Token.
Is there a way achieve this. Or/ Is there any alternative way.
Thanks

How to receive bot's messages in telegram?

I wrote some bot that sends messages to some channel using nodejs. This bot is an admin in that channel and it can see messages from users using /getupdates api. However it can't see own messages. Is there any way to do that?

Asynchronous messaging in api.ai

I require to send messages asynchronously from my service to api.ai and then api.ai would send it to Facebook Messenger.
To achieve asynchronous messaging I have used custom events.
But on using custom events, events are getting triggered from webhook, and messages are going to api.ai but it is not further displaying anything to facebook messenger
Probably you want to add a delay before api.ai replies to user input, right? Than you need to add a delay in your Facebook integration app.
Consider the follow flow
User type a message in Facebook messenger window
Facebook sends the message to your integration app
Integration app sends the message to api.ai
Api.ai responds to the message and send the reply to the integration app
Integration app wait for a while and than sends the reply to Facebook
Regards

Resources