4

In facebook chatbots, if you look at this documentation about Entry points you see that there is one option: Linking Ads, where you can identify your user in the Bot came from which of your ads on Facebook.

In my application, it is vital to know where my user came from, so I need to create unique links which end up in my Bot with some extra info, e.g. unique id, to help me solve the issue.

My question is how can I do this?

May be at the moment it is not possible to do it directly, but if anyone reasearched what additional parameters Facebook adds to the ads url that they are recognisible is also useful.

The Telegram counterpart of this feature is called: Deep Linking

Hamed MP
  • 5,443
  • 3
  • 39
  • 37
  • @wizkid can you help me with this? – Hamed MP Sep 18 '16 at 17:48
  • I need info passed with scannable messenger codes, so the way I'm doing it is by making several pages that the bots are attached to, so depending on which page you're talking to the bot knows what your origin is, despite the pages looking identical. Not sure if this helps you, but I thought I'd mention it – user2322082 Sep 20 '16 at 16:32
  • Any findings for this? – Pavel Bulanov Sep 22 '16 at 11:46
  • @PavelBulanov Not yet, I think it will be implemented and it's not available in current version. – Hamed MP Sep 23 '16 at 13:24

1 Answers1

3

There has been a new feature for Messenger Platform added recently, which might serve the purpose. It's called Referral in m.me Links.

info 1

Passing a Parameter

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.

info 2

Referral Callback

This callback will occur when an m.me link is used with a referral param and only in a case this user already has a thread with this bot (for new threads see Postback Event).

To start receiving these events you need to subscribe to messaging_referral in webhook settings of your app.

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

Pavel Bulanov
  • 933
  • 6
  • 13