Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Postback stop sending till refresh #59

Open
Pedrat opened this issue Feb 28, 2018 · 5 comments
Open

Postback stop sending till refresh #59

Pedrat opened this issue Feb 28, 2018 · 5 comments

Comments

@Pedrat
Copy link

Pedrat commented Feb 28, 2018

Whenever i try to interact with the persistent menu, the first 2 interactions it does what it is supposed to do, but after those 2, if i want it to work i have to refresh the whole page.
Any help would be appreciated.

page.show_persistent_menu([Template.ButtonPostBack('Menu', 'MENU_PAYLOAD')])

`@page.handle_postback
def received_postback(event):
sender_id = event.sender_id
recipient_id = event.recipient_id
time_of_postback = event.timestamp

payload = event.postback_payload

print("Received postback for user %s and page %s with payload '%s' at %s"
      % (sender_id, recipient_id, payload, time_of_postback))

page.send(sender_id, "Postback called")`
@Pedrat
Copy link
Author

Pedrat commented Feb 28, 2018

No logs appear on heroku aswell

@Pedrat
Copy link
Author

Pedrat commented Feb 28, 2018

And appears to be only with persisten menus

@pdoggi
Copy link

pdoggi commented Mar 13, 2018

Having similar issue with postback buttons in persistent menu.

@shackra
Copy link

shackra commented Apr 10, 2018

I too experience something similar to this

@skar3
Copy link

skar3 commented Jun 15, 2018

I have this problem randomly too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants