botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Facebook Messenger not always responding

Open yochail opened this issue 8 years ago • 6 comments

Bot Info

  • SDK Platform: .NET
  • SDK Version: 3.15.3
  • Active Channels: messenger
  • Deployment Environment: Azure App Service

Issue Description

from time to time, for some users, the bot is not responding to FB opening message - the "get Started" button payload. this is happening usually for a couple of users, in a specific time period. for instance: bot id: say2eat-slicefactory fb app id: 416560508765917 fb page id: 184610795480041

timeframe: 7/10/18 19:10-20:10 UTC the bot didn't receive three users messages. the bot did receive users messages before and after that time period. no change has been made.

image

ther was no exception in the bot service channels gui: image

no message got to the bot image

Code Example

this is the code used to create the get started postback: dynamic data = new ExpandoObject(); Data.get_started = new ExpandoObject(); Data.get_started = new { payload = "new order" };

            var stringData = Newtonsoft.Json.JsonConvert.SerializeObject(data);
            using (WebClient client = new WebClient())
            {
                client.Headers[HttpRequestHeader.ContentType] = "application/json";
                var result = client.UploadString(url,stringData);
            }

Reproduction Steps

  1. this is happening (Randomly?) for one or two customers every day, but I cant reproduce the effect from my FB account.

Expected Behavior

the bot should receive the button payload and answer the user

Actual Results

the bot didn't receive any message

yochail avatar Jul 11 '18 10:07 yochail

I'm having almost the same problem. My bot has some hero cards with buttons and when the user clicks on these buttons, facebook messenger does not respond. It was working properly two weeks ago.

If the user types the text equal to the button text, the bot responds correctly. I tested the same bot in the telegram and the messenger in chrome, it worked fine. I don't know if is a bug in the messenger app or something like that.

renanaugustom avatar Jul 13 '18 12:07 renanaugustom

For what is worth, It sometimes happens to me when you have 2 apps subscribed to 1 page. Try to see if it's your situation

amitbend avatar Jul 15 '18 13:07 amitbend

@renanaugustom and @amitbend, are either of you still experiencing problems?

stevkan avatar Jul 24 '18 22:07 stevkan

@stevkan I had this problem for a while. I could not figure out the reason for the problem, so I deleted the facebook app, and recreated it. I don't know why, but the bot started to work fine again. It seemed like a problem with facebook, not with the bot.

renanaugustom avatar Jul 24 '18 23:07 renanaugustom

Has anyone experiencing this created a ticket with FB? Did FB acknowledge the bug? @renanaugustom @yochail

cdutcher avatar Jul 27 '18 14:07 cdutcher

Closing as resolved. If not, please feel free to reopen.


The Microsoft Bot Framework team prefers that how to questions be submitted on Stack Overflow. The official Bot Framework Github repo  is the preferred platform for submitting bug fixes and feature requests.

stevkan avatar Aug 03 '18 22:08 stevkan