Passing a string to Messenger Bot from a link - facebook

Facebook Messenger allows us to deeplink to Messenger bots and track the referrer which is pretty useful, having read through the documentation on this I'm left wondering if it is also possible to send a text string to the bot via this method.
i.e a link that opens up the bot in Messenger and sends a text based message just as if the user had typed it themselves.
Can anyone point me in the right direction for this?

Related

How to Remove “Powered by ManyChat” footer from a messenger bot

I am developing a chat bot for the messenger platform, but I found myself mesmerized by the fact that “ManyChat” appears on the footer of the users text input field.
I have become an admin of that page and proceed to remove many chat from the list of connected apps for that page, but the footer is still there.
Maybe I have to call the messenger platform API in order to change some property that isn’t available from the Facebook Pages User Interface. But nothing in the documentation mentions anything about a persistent footer on the page.
Does anyone have any clue of how to remove this?
Have you tried to reset the chatbot's persistent menu? This can be done with sending a POST HTTP request to Facebook Messenger API as explained here:
https://developers.facebook.com/docs/messenger-platform/send-messages/persistent-menu

Facebook Oauth-enticated users, chat between themselves on website

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

How to use the facebook send dialog but send a message and not a link

Everythin is in the title :
I want people that are on my website to send facebook messages between each others (between respective friends) : they signup on my site with their facebook account, and I know their friends. I just want them to easily talk between them without having to switch to facebook.
Or at least, if that is not possible, I want to open a new tab with their facebook on messenger with a prefilled to: field.
I never imagined this information could be so difficult to find

Redirect to FB messanger bot with text message.

I am redirecting the user from my website to 3rd party FB messanger bot. Let us take an example of a weather bot. The simple workflow is:
1. User click on the bot link .
2. User is on messanger bot page.
3. User types in his city name say Zurich and gets the weather report for it.
In my scenario I already know user's city i.e. Zurich. Is it possible for me to send city name (text message) along with redirect to weather bot so that user does not have to type it. I already looked into send api, but can't figure it out.
If you redirect to the bot with an m.me link you can include the city in the ref param. The ref is delivered to your webhook in a messaging_referrals or messaging_postbacks event, depending on whether the chat is new or existing. The bot can then parse that ref and return the appropriate message.
https://developers.facebook.com/docs/messenger-platform/discovery/m-me-links

Messenger not recognize GET parameters

I'm using the messenger API to send messages to facebook, in that messages sometimes i have links to an external website with get parameters.
Like: http://example.com?example=true
The main problem is that messenger only recognizes http://example.com as an link and i truly need the GET parameter.
There is anyway to fix this?
Ty,
Rui