Facebook Webhook Event block - facebook

I'm writing my facebook-chatbot and i need to register users who are turned off receiving messages from my bot. Is there any facebook webhook event, when user blocks bot messages? I need event like vk api message_deny.

There is no way to explicitly tell that the user blocked your bot, but as #CBroe mentioned in this comment, you will get an error response from the API when the message fails to be delivered.

Related

Send a message as a user to another one

Is it possible to send messages as a real user (not a page. For example myself) to another user using the Facebook Graph API?
In other words, can I create an app that will make an API call which will send a message as myself to a friend of mine (as if I have sent it myself)
The send and conversation API seems to be only about sending and receiving messages as a page
No, there is only an API for Page to User communication, but not for User to User communication.

How work with Facebook Page Subscription Messaging

I'm working on Facebook Messenger chatbot and I've found documentation about Facebook Page Subscription Messaging. This feature allow your bot to send messages to users, outside of the "stardard" 24 hours messaging.
Facebook's documentation explains what is Subscription Messaging
but I've not found more details about how implement it.
My questions:
Is there any back-office to be able to send this kind of message ? For example to allow a Community Manager to send this messages
In the case where to do code is mandatory, I suppose I have to build a Facebook's users list and use it to send "Subscription Message" type to each. Can I send these messages to these users at the same time or I have to do some packets or add a small timeout between each messages ?
What happends if I send a "Subscribe Message" to an user who have unsubscribed to my bot's messages ?
Thanks !

Is there a way to send the response that's returned from dialogflow (fulfillment) to another account

I am using slack with dialogflow fulfillment to create a chat bot.
Can userA send a message to dialogflow and dialogflow return a response to userB?
This is not possible, the WebHook responses goes in the conversation which originates the call.
You can create a custom logic (in your Webhook) to initiate a message to another user. This depends on the Channel, for example with the Telegram API you can notify a user having his/her chat ID.

XMPP Framework: Not able to receive my messages

I am working on xmpp framework. I have done most of initial things. I created stream, Connected it and get authenticate. Now I am sending buddy request to another user from my app. App shows presence is sent. When I get roster it shows a entry there. But on other system I am not getting any precence or anything. I tried to send a message message is also not received by other client.
Than I used one id in ichat and send friend request to that id. Wow I am able to see friend request on ichat. I accept request from ichat :( No notification on my app.
If I send message to ichat. Message shown in iChat. but when I send message to my app from ichat.. My app is not getting any delegate called or nothing.
I don't know why this is happening.
I am using a non ARC xmpp framework.
Please guys Please help me. I am badly stucked in it :(
Thanks in Advance.
Have you consider to send presence after get authenticate?
If you are authenticate but not sending preence than server will consider you offline and all messages sent to you will be stored on server with delay.
Send your presence and see the magic. :)
I am not an iPhone developer so i can not explain programming.
In XMPP, Presence subscription has two handshakes. Like When first user send request to second user , it will ask for presence subscription to second user. When second user accept , then first user is subscribed for second user's presence. So he can get all the presence of second user. It's called "to" subscription type for first user. Now second user ask for presence subscription to first user and first accepts request then this "to" subscription type changed to "both" subscription type. Now both user can get presence of each other. otherwise only first user can get presence of second user.
And for messages, there must be a some prob with listener.

Facebook chat API - XMPP typing paused notifications

I'm using the XMPP protocol in order to send and receive messages with the Facebook chat.
I'm able to receive messages, and as well get the typing notifications.
My problem is that I'm not receiving the 'typing paused' notification.
My app has successfully made the auth procedure and when the user is typing a message I'm receiving the 'composing' message but when he stops typing I'm not getting the 'paused' message that is documented in the XEP-0085 protocol.
Thanks
The answer is most likely that Facebook doesn't support <paused/>. Only support for <active/> and <composing/> is absolutely required by the XEP.
Your client should handle <paused/> appropriately, but also handle not receiving it just fine too.