OmG
OmG

Reputation: 18838

How to send parameter to the bot in Facebook messenger

Is it possible to send any parameter into the bot in Facebook messenger like telegram? For example a link likes the following:

                           telegram.me/your_bot?start=XXXX

Upvotes: 3

Views: 1748

Answers (1)

OmG
OmG

Reputation: 18838

Yes. It is. m.me is a shortened URL service operated by Facebook that redirects users to a person, page, or bot in Messenger. The format of the link is http://m.me/PAGE_NAME, where PAGE_NAME is the handle of the Facebook page the bot is linked to.

A m.me link with an added parameter looks like this:

                              http://m.me/mybot?ref=myparam

The value of the ref parameter will be passed to the server via webhook. Follow the details from this post.

Upvotes: 5

Related Questions