facebook-messenger

How to detect when Facebook messenger is bubble is opend?

可紊 提交于 2021-02-08 03:59:24
问题 Facebook uses a service to push the messenger bubble on android - something like the follows: http://www.piwai.info/chatheads-basics/ I want to detect when the bubble is opened / closed I've started investigating the following options - Listen (By pulling) to the running services - I found out there are 4 services when the messenger is shown and 2 when it's killed. I want to know when the messenger bubble is close so it doesn't help me. Listen to the notifications - I know when it's removed

Send to messenger not showing

百般思念 提交于 2021-02-05 04:50:23
问题 I'm trying to add facebook's " send to messenger " to my web page. On Fb's documentation it states: When there isn't an active session, no identity is surfaced. When the button is clicked, we will present a Login dialog. But what I realize is that if a user is not logged in to facebook the button doesn't get rendered at all. Is this the expected behaviour? PS- Note that my fb app is not in dev mode and I'm using the a fb account with admin role for that app. 回答1: If you app has not yet been

Send to messenger not showing

点点圈 提交于 2021-02-05 04:49:53
问题 I'm trying to add facebook's " send to messenger " to my web page. On Fb's documentation it states: When there isn't an active session, no identity is surfaced. When the button is clicked, we will present a Login dialog. But what I realize is that if a user is not logged in to facebook the button doesn't get rendered at all. Is this the expected behaviour? PS- Note that my fb app is not in dev mode and I'm using the a fb account with admin role for that app. 回答1: If you app has not yet been

Send to messenger not showing

…衆ロ難τιáo~ 提交于 2021-02-05 04:49:28
问题 I'm trying to add facebook's " send to messenger " to my web page. On Fb's documentation it states: When there isn't an active session, no identity is surfaced. When the button is clicked, we will present a Login dialog. But what I realize is that if a user is not logged in to facebook the button doesn't get rendered at all. Is this the expected behaviour? PS- Note that my fb app is not in dev mode and I'm using the a fb account with admin role for that app. 回答1: If you app has not yet been

facebook messenger and dialogflow:: detect each event individually from multiple generic templates button

隐身守侯 提交于 2021-01-29 13:19:56
问题 I am working with chatbot and dialogflow is my nlp platform. Currently, I am using generic templates to show my products on messenger. Now, when customer clicks on buy now button from multiple templates buttons I want to detect which template button has been clicked (detect individual event) and want to set different message for different product from dialogflow . One way to do the job is using context but I want to know whether it is possible to achieve the same outcome without using context

infinite loop in a WebHook

爱⌒轻易说出口 提交于 2021-01-27 04:37:22
问题 I'm doing a facebook messenger bot. After you start it, it makes a call to WebHook. Unfortunately after the first start will not stop throwing the same call with the same parameters. The settings are: message_deliveries; message_reads; messages; messaging_optins; messaging_postbacks. The source code is this: https://github.com/Ellusu/nuraghebot-facebookmessenger/blob/master/index.php Where am I wrong? Why does only one call? 回答1: By your code I decided that you can't setup your webhook, so

Sending a button response to fb messenger via api.ai

别来无恙 提交于 2020-12-16 08:05:20
问题 I have started playing with diaglofFlow a.k.a api.ai with fb messenger integration. I defined an intent which current returns 3 responses. 2 text responses and 1 custom payload. the 2 text responses comes just fine but the custom payload which is suppose to return a button is not. the custom payload looks like { "recipient": { "id": "1234" }, "message": { "attachment": { "type": "template", "payload": { "template_type": "button", "text": "What do you want to do next?", "buttons": [ { "type":

Why I do not receive the attachments in the Facebook Messenger webhook request?

主宰稳场 提交于 2020-12-07 04:35:21
问题 Since yesterday (29/10/2020) i'm having this problem only on one of the pages linked to my app, the others work correctly: The attached messages that the webhook receives from Facebook do not contain the attachment field. Only messages with stickers contain the "attachment" field. All others (image, video, audio etc.) No. What I expect (as facebook documentation) is: { "id": "682498302938465", "time": 1518479195594, "messaging": [ { "sender": { "id": "<PSID>" }, "recipient": { "id": "<PAGE_ID