Here is what worked for me:
- Load the widgets script within the header part of the HTML
<header>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js" id="twitter-wjs"></script>
</header>
- Then, make sure the event is ready to be called back using the twttr.ready callback function (somewhere in the HTML body tag):
<script>
twttr.ready(function (twttr) {
twttr.events.bind('tweet', function (e) {
console.log ('[INFO] Tweet called...');
console.log (e);
});
});
</script>
One thing that I couldn’t do though, was to return the user that actually did the POST… well, nothing comes cheap I guess.