Created
July 24, 2016 15:40
-
-
Save miki2826/74f766504b75d6d4ec26e628cf0d2632 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Send the login button | |
botly.sendButtons({ | |
id: recipientId, | |
text: 'Please Login :)', | |
buttons: [botly.createAccountLinkButton(`https://${LOGIN_DOMAIN}/auth/facebook`)], | |
}); | |
//Listen on the account link event | |
botly.on('account_link', (sender, message, link) => { | |
//Continue conversation | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment