Messenger Referral

Xenioo Facebook channel fully supports the Facebook Referral link format. This enables your chatbot to automatically present your user with different informations depending on a specific keyword added to your chat link.

A standard Facebook chat link would look something like this:

http://m.me/<PAGE_NAME>

Where <PAGE_NAME> is the name of your page. To build a referral link, you just add the referral parameter at the end of the link like this:

http://m.me/<PAGE_NAME>?ref=<REF_PARAM>

The <REF_PARAM> value can be anything you like and it is going to be the value your bot will be looking for.

If your page does not have a unique name, the <PAGE_NAME> may not work. Use the page id instead: the page id can be retrieved by going into your page settings and selecting the "Messaging" menu section.

Checking for a referral

Inside your chatbot, the referral (ref) value will be translated to a simple text. For your chatbot it will be like the user has typed the referral value. You can check this value anywhere in the chatbot by simply using a global text detection operation.

Further Reading

Last updated