Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Support Facebook messaging_referral events #518

Closed
johngriffin opened this issue Nov 29, 2016 · 0 comments
Closed

Support Facebook messaging_referral events #518

johngriffin opened this issue Nov 29, 2016 · 0 comments

Comments

@johngriffin
Copy link
Contributor

This new feature for Facebook Messenger allows you to pass a referral parameter into a m.me URL. This param is sent to the bot using the "messaging_referral" webhook, which is not currently supported by Botkit.

More info on the feature from Facebook:
https://developers.facebook.com/docs/messenger-platform/referral-params

It seems that we need to recognise this event in /lib/Facebook.js and create a corresponding event in botkit, to be used:

controller.on('facebook_referral', function(bot, message) {
   console.log('the referral code is' + message.referral.ref)
});
benbrown pushed a commit that referenced this issue Nov 29, 2016
Add support for Facebook messaging_referral - fixes #518
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant