Facebook Messenger: is it possible to initiate a chat with options?

On the same day, Facebook used to identify URLs that were something like http://facebook.com/send_a_message/user/55/pre_fill/Hi there. When you click on this link, Facebook will open its Messenger with the message “Hello,” which will be sent to user 55.

But then Facebook decided that the “prefilling” was bad and outlawed it in all of its APIs. Now there are several ways to initiate a Messenger chat session, but all of them mean "start chatting with user 55" rather than "start chatting with user 55 using some information."

The fact is that I would like to somehow convey the information along with the link. For example, I could have three different links on three different pages, and I want my chatbot to react differently based on the page the user came from. Since I cannot “pre-populate” the message (for example, “Hi, I just came from page A”), I wonder if there is another way to convey supporting information.

TL; DR

I am wondering if there is a way to provide the user with a link that, when clicked on, starts a chat session with my chatbot user and somehow transfers information to him. Using an intermediate proxy server (i.e., sending a link to my server and then starting my chat in some way) will work, but only if I can connect the information with the user (i.e. This will not help know "page A "if I can’t associate this with the user after the start of the chat).

+4
source share
1 answer

After further research, it turned out that the answer to my question is not like this: there is currently no way to convey additional information.

: ( , , , Facebook). , , " , ", . , .

+1

Source: https://habr.com/ru/post/1654080/


All Articles