No payloads being sent with persitent_menu #106
-
Hi Ampalibe team, first off this is a really nice tool you've got here, I've been using it for testing the messenger platform for a few weeks now and it works without a hitch But it just stopped working out of the blue as of today: none of my persistent_menu payloads are being sent now, there was no change to the code and tokens that would lead to this error Could you point out how this can be debugged? no event seems to be fired from clicking on my buttons with defined payloads anymore edit: even the example codes with payloads don't work anymore, but sending the payload directly, like "/do_something" via chat works fine and reaches my webhook Many thanks |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 7 replies
-
Hi, so the message is sent as a simple messge? it is not redirected to the target payload? it is surely a bug of the client platform used. P.S: If you use Try to test on different client platform namely Facebook web, Facebook Messenger, Facebook Lite latest version. |
Beta Was this translation helpful? Give feedback.
-
Can you provide a video to show click and terminal console, and before receive code, and make a print in this code. |
Beta Was this translation helpful? Give feedback.
-
import ampalibe
from ampalibe.ui import QuickReply
from ampalibe import Payload, Messenger
chat = Messenger()
@ampalibe.command('/')
def main(sender_id, cmd, **ext):
quick_rep = [
QuickReply(
title='Angela',
payload=Payload('/membre', name='Angela', ref='2016-sac')
),
QuickReply(
title='Rivo',
payload=Payload('/membre', name='Rivo')
)
]
chat.send_quick_reply(sender_id, quick_rep, 'Who?')
@ampalibe.command('/membre')
def get_membre(sender_id, cmd, name, **ext):
chat.send_text(sender_id, "Hello " + name)
# if the arg is not defined in the list of parameters,
# it is put in the extends variable
if ext.get('ref'):
chat.send_text(sender_id, 'your ref is ' + ext.get('ref')) can you try this code and verif if it works when clicking button, |
Beta Was this translation helpful? Give feedback.
-
I tried on my side and I did not encounter any problem issue_payload.mp4contact me on discord and we can view together your problem user: @gaetan1903 |
Beta Was this translation helpful? Give feedback.
-
We figured this one out, thanks to @gaetan1903 Seems the Facebook page itself started bugging out and stopped sending payloads altogether, with no indication of any errors. It was fixed by linking to a new/different page, using the same app as before. |
Beta Was this translation helpful? Give feedback.
-
removing link to the app then re-adding it fixes it |
Beta Was this translation helpful? Give feedback.
We figured this one out, thanks to @gaetan1903
Seems the Facebook page itself started bugging out and stopped sending payloads altogether, with no indication of any errors.
It was fixed by linking to a new/different page, using the same app as before.