Facebook API Receiving Postback Messages but not Raw Text Messages - facebook

Currently, if I send a message to my chatbot through the persistent menu, I get a POST request (ngrok indicates this) containing the postback. However, when I send a raw text message through typing, the message is not marked as sent and my bot does not get a POST request. My bot occasionally receives raw text messages hours to days later, however the message is always the same and is repeated multiple times.

Related

I can't send messages with WhatsApp Business Cloud API

I am trying to send a message through WhatsApp using WhatsApp Business API, but it doesn't work.I created a new whatsapp application on the Facebook developers page. I entered my own phone instead of the test phone from the "Getting started" page. I'm trying to send a message with the sample api found on the "Getting started" page. I press the 'Send Message' button. I get the response "Message sent successfully". I can see that messages are sent in the statistics section on Facebook Business (https://business.facebook.com/wa/manage/insights/). However, messages do not come to the specified phone number.The messages I sent are not being delivered. "The first 1000 messages initiated by the business are free." specified as. So I should be able to send messages without a message problem. I have not made any payments as of now. It also asks me to add the receiving phone when I want to try the "Test number". The recipient sends a verification code when adding their phone. However, the verification code is not coming to the phone. Where am i doing wrong?
here are my results

SendGrid send mail - how to keep track of emails?

I am sending emails from sendgrid from my backend. When I send the email, the response is 202 and the response body is empty. Since the response body is empty, i do not have any information like an ID to track the email events in my system.
When I go to fetch the events, i see they have an ID, but since I don't have that ID from their creation, I cant map emails I sent to events I received.
Can you give an email an ID or label it somehow when you send it? So that you can map al the events from it?
What we are trying to do is to have a list of "transactions" where each "Transaction" is affiliated with an email. We want to provide email event data in our app, but can't figure out how to map
The response body of a successful Mail Send API call is empty, but the response contains a x-message-id header which you can use to retrieve details about the messages being sent.
Since one API call to the Mail Send API can result in multiple emails being sent, this ID identifies the group of messages, and they'll all be prefixed with the x-message-id. For example, if x-message-id returns W86EgYT6SQKk0lRflfLRsA, the IDs of your messages will start with that and then be suffixed with something like .filterdrecv-5645d9c87f-78xgx-1-62841247-82.1.
Together it'd look like W86EgYT6SQKk0lRflfLRsA.filterdrecv-5645d9c87f-78xgx-1-62841247-82.1.
If you want to track the messages, you can use the event webhook or pull the information via the Email Activity Feed API.
This Stack Overflow Q&A about tracking bulk email statuses may also be useful to look at.

Unread messages count on XMPP

I am using MongooseIM to develop a XMPP-based Chat App and I'm trying to implement the number of unread messages in my app.
I'm using XEP-0022 (Message Events) to track when a message is received from the server, received from the client, seen from the other client and XEP-0430 (Inbox) to keep track of unread messages that are read as soon as I retrieve them from MAM.
My main issue here is that, when requesting messages from Inbox, it returns all of the messages and not only the text ones. To clarify: it returns also messages that are sent to ack that a message is received and all of the in-between messages, thus incrementing the unread counter and making it very unrealistic.
What can I do to solve this issue?
You can use XEP-0333: Chat Markers instead of XEP-0022 (marked as obsolete) to pass delivery/read status around. MongooseIM Inbox is aware of XEP-0333 markers and will not count them towards the total number of unread messages. This is the easiest option if you have control over the XMPP extensions in use.

Messenger's webhook multiple videos in single message

When user sends multiple videos to the messenger, webhook will not receive it as a single message with multiple video attachments.
Webhook receive as separate messages for each videos.
Is there any work around to receive as single response?

MFMessageComposer iPhone,Auto Message Send

Any one know how to implement auto send message using MFMessageComposer....i mean No need of displaying The message Composer..we Have to sent the pre-defined message to a given Number..Or any other way without using MFMessageComposer..???
You can't auto-send messages with MFMessageComposer. It always displays the message to the user before sending (and rightly so).
An alternative would be to call a webservice which dispatches an email to you. Or put enough SMTP code in your app to get emails sending. You'll need your own email system for this though as you'll not be able to get the users email settings.