webfacebook-messenger-bot

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

Solution

  • 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.