I want to make a chat widget which includes functionality that you can chat with messenger and in that instead of redirecting user to messenger window i want to post messages to messenger on behalf of user and webhook of messenger will take care of rest.
The graph api only explains about how to send message on behalf of bot. Is it possible to send message on behalf of user using graph API+ messenger platform or something else?
Related
So I created a ChatBot with Messenger API and I get the messages that has been sent to the Facebook Pages. I also get the unread_messages which is from "unread_count" but I couldn't find how to update the unread_count for each conversation. There is no answer for that in the docs.
It doesn't go away when i send message from my chat. It only goes 0 when I manually login to https://business.facebook.com/ and click the chat.
There is a "sender_action" parameter which has "mark_seen" indicator but it is only for visual seen. It doesn't do anything on the unread_count.
Do I have to handle this on my backend or Facebook API has the solution?
I have a website where users log in with Facebook. Right now there's no way for users to contact each other.
I was thinking of building a dedicated live messenger with sockets, but I wonder if there's an easier way to allow them to send messages to each other's Facebook Messanger, since they are already logged in with facebook.
There is no API for a chat between two users. Everything in Messenger API is focused on communication between a user and a page.
At most you can use the Send dialog to let a user send a link to their friends, but that requires the user actively using the button, you can not “automate” that; and handling the result will have nothing to do with your site any more, everything after that will happen in messenger only. https://developers.facebook.com/docs/sharing/reference/send-dialog
I want a user to be able to send a message to the chat application on my website from Facebook Messenger Chat, but I can't find an API that I can do so. Is there a Facebook Messenger API that will allow them to be integrated? How do I proceed?
I am building a Chat Bot using Facebook Messenger Platform.
According to Facebook documentation, all users who previously contacted my page via Messenger chat can be contacted using the bot.
My question is: is there a way to retrieve the list of user ids who previously contacted my page on Messenger, previous to the bot being enabled on the page?
My intention is to engage them and let them know that they can use the bot now.
Thanks.
I have developed FB messenger bot using Microsoft bot framework. The bot is ready and approved by FB.
Now I am working on the hybrid part so human(web panel user) can take over chat and do conversation.
Now Issue is, I don't now which permissions need to read and show bot conversation in my web panel.
Also, it will be great if you can suggest that should I need to save conversation in DB to show in web panel or Is it possible that I can make a direct get request to FB API and show.
Thanks.
For FB Permission: pages_messaging
Development:
Show message: From our database.
Reply message: Using botframework