This repository has been archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
optin not working with checkbox messanger plugin #1268
Labels
Comments
@gilLionKing that's interesting, I'm also subscribing to
|
Is this still a problem? |
@peterswimm yes. I still not getting events to my webhook. |
The primary thing to check is your developer portal settings, and if your developer environment is reaching the outside internet. |
I'm running two apps. Two of them using localtunnel (Frontend and the bot). Subdomain for frontend is whitelisted, checkbox is visible on in the web app. I can browse the web app and talk to the bot. But can't get webhook, don't really understand if it's FB or not. Maybe if you can point me to the code that I can debug on botkit side, I would be more then happy. |
This was referenced Dec 6, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi im implementing the checkbox plugin on my website and when the user optsin im receiving the event
throught the bot kit
im using the below code to trigger the opt in taking the user_ref as the id which will be used to send a message
else if (facebook_message.optin ||
(facebook_message.postback && facebook_message.postback.payload === 'optin')) {
message = {
optin: facebook_message.optin,
user: facebook_message.optin.user_ref,
channel: facebook_message.optin.user_ref,
timestamp: facebook_message.timestamp
}
controller.trigger('facebook_optin', [botk, message])
}
but when i try to send a message with
controller.on('facebook_optin', function(botk, message) {
botk.reply(message, 'Welcome to my app!');
});
im getting debug: API ERROR { message: '(#100) No matching user found',
type: 'OAuthException',
code: 100,
error_subcode: 2018001,
fbtrace_id: 'DZBD+d9AsP4' }
what can i do to correct this ? its probably an issue with the reply not using the user_ref id
The text was updated successfully, but these errors were encountered: