react-facebook icon indicating copy to clipboard operation
react-facebook copied to clipboard

Event Subscription Send to Messenger button

Open gijo-varghese opened this issue 7 years ago • 2 comments

Right now the STM button just renders, there is no way to check whether user has clicked, opted in etc. Facebook provides events for that. https://developers.facebook.com/docs/messenger-platform/discovery/send-to-messenger-plugin/

gijo-varghese avatar Oct 13 '18 08:10 gijo-varghese

You can use Subscribe component for Facebook events in this moment. But I can add it to Subscribe button as well. It is good idea 👍

seeden avatar Oct 18 '18 07:10 seeden

Does anyone know how to use the Subscribe component???

if you nest it within <FacebookProvider /> it returns

error initialize(...) Nothing was returned from render. This usually means a return statement is missing

or if you don't nest it, it returns

react-facebook cannot read property 'handleinit' of undefined

any ideas are helpful

camburley avatar Feb 07 '20 01:02 camburley