I'm using the default Facebook embed code:
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js#appId=176702405718664&xfbml=1"> </script>
<fb:like href="http://domain.com" send="true" width="700" show_faces="false" action="recommend" font=""></fb:like>
.. but I'd like to show an alert if the user clicks 'recommend' or 'send' buttons. Please see this fiddle:
Thanks!
you will have to subscribe to the edge.create event, it gets triggered when user clicks the like button.
// for send you will have to use this