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 !
Related
Handover Protocol of Facebook messenger seems to have changed recently. Lot of online materials I have seen refer to primary and secondary receiver but the docs https://developers.facebook.com/docs/messenger-platform/handover-protocol/ does not mention it now.
This is how my Advanced messaging menu looks like.
Advanced messaging
I am developing external chatbot integration and want message primarily to be replied by chatbot and mark it as read/done in messenger inbox. If bot does not know the response, I want to keep it (mark it) unread in inbox to drag attention of human operator.
Still all messages from 3rd person and also replies from bot are shown as Bold (unread) in messenger inbox. What is the correct approach to achieve this?
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.
I will name my firstborn after whoever answers my question!
My bot uses the Handover Protocol to transfer users from the bot (primary receiver) to the page's inbox (secondary receiver) after they tap on a 'chat with human' button, the problem is that I'm not getting any facebook notifications when the user starts messaging a human (page inbox).
Right now I'm having the bot email me anytime it transfers a user to a human but this fix obviously doesn't scale, ideally I would want facebook to send me notifications on my phone just like it does by default to pages that receive messages and don't have any bots installed.
I know I can see the messages sent to a human by using the 'standby' webhook but those are developer-side server logs, what I want are normal facebook notifications sent to the page owner and the people in the page's Roles so they reply to those messages instead of me (the developer) being the only one being notified through emails I have to send myself.
1.You have to go to Your Page--> Settings--> Notifications--> Select this option
from Messages- "Get a notification each time your Page receives a message".
2.Download "Facebook Pages Manager" App to get all your page related notification
on your phone.
As the title says, is there a way to redirect all skype messages I receive
from one profile to another ? The Skype support states that you can activate
SMS messages which will get redirected but I just want simple chat messages
to be redirected from one profile to another automatically.
Just to clarify, both profiles will be online and not one offline and the other
online.
All code/forums/books will be appreciated.
There is commercial tool for this. It works across many messengers but the monthly cost is quite big: https://sameroom.io
Also here is the most relevant discussion of the stuff: https://github.com/microsoft/botframework-sdk/issues/4046
Skype doesn't support incoming text messages - you can set up an SMS ID which allows you to send SMS messages from Skype and receive the answer to your mobile phone.
To do this, go to Skype -> Preferences -> Messaging. After you have validated your mobile number, all SMS messages you send from Skype will display your mobile number as the sender ID.
I have set up a basic install of XMPPHP and to test it I tried sending a message from one of my gtalk (GoogleTalk) accounts to another gTalk account. The receiving account did not show the message, or the normal "user * has sent you a message: accept/block"
I then sent my receiving account a chat message from within the Google interface, and it prompted me (as expected) to add my account to the list of approved chat people.
Once my sending account was on the "approved" list, i was able successfully to send messages with xmpphp with no problem.
My question: Using xmpphp, how do i send an INVITATION to chat? I can send messages fine once the recipient accepts my incoming chats, but the first message sent does not trigger the chat program to prompt me to accept the messages.
As a follow-up...is there a way to find out if the recipient has accepted the request? ANy way to know that the messages are being delivered (or not)?
I had the same problem and the solution is to send a "subscribe" request before the message.
So just call
$conn->subscribe('someguy#someserver.net');
before
$conn->message('someguy#someserver.net', 'This is a test message!');