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

Onclick callback #6

Open
stunningpixels opened this issue Mar 10, 2017 · 2 comments
Open

Onclick callback #6

stunningpixels opened this issue Mar 10, 2017 · 2 comments

Comments

@stunningpixels
Copy link

Is it possible to implement a callback when the button is pressed?
Useful when automatically closing dialogs that prompt people to connect to messenger

@lemieux
Copy link
Owner

lemieux commented Mar 10, 2017

When I wrote this wrapper, FB didn't have any useful event, but it seems they added rendered, clicked, and not_you.

I don't have much time to implement that currently, but as a workaround you could listen yourself to the event on the FB SDK. Once loaded, you should be able to access it via window.FB and handle it yourself. Here's FB docs about it : https://developers.facebook.com/docs/messenger-platform/plugin-reference/send-to-messenger#event

@stunningpixels
Copy link
Author

Thanks @lemieux - I might have a go at implementing this later this week

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

2 participants