Quantcast
Viewing all articles
Browse latest Browse all 10

Declaring Postback URL in Facebook Customer Chat Plugin

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!.


Viewing all articles
Browse latest Browse all 10

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>