How do I designate the Postback URL for the Facebook Customer Chat plugin?
https://developers.facebook.com/docs/messenger-platform/discovery/customer-chat-plugin/
Under the message type & template support section they state support for Postback. Further down the page they reference an optional event called “messaging_postbacks” and “messaging_referrals”. Do I declare these as attributes of the fb-customerchat div tag?
Here’s my code: <div id='fb-root'></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = 'https://connect.facebook.net/en_US/sdk/xfbml.customerchat.js#xfbml=1&version=v2.12&autoLogAppEvents=1'; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <div class='fb-customerchat' attribution="wordpress" page_id='xxxx' message_postbacks='http://example.com/test.php' message_referrals='http://example.com/test.php'> </div>
I have a simple script looking for php://input and logs the data sent, but I”m not receiving any data.
The post Declaring Postback URL in Facebook Customer Chat Plugin appeared first on 100% Private Proxies - Fast, Anonymous, Quality, Unlimited USA Private Proxy!.