Skip to content

Instantly share code, notes, and snippets.

@brow
Created April 5, 2012 19:24
Show Gist options
  • Save brow/2313395 to your computer and use it in GitHub Desktop.
Save brow/2313395 to your computer and use it in GitHub Desktop.
<html>
<body>
<div id='fb-root'></div>
<script src='http://connect.facebook.net/en_US/all.js#xfbml=1'></script>
<script>
var events = ['edge.create', 'edge.remove', 'xfbml.render'];
for (var i = 0; i < events.length; i++) {
var eventName = events[i];
FB.Event.subscribe(eventName, function(r) { alert(eventName); });
}
</script>
<fb:like href='http://yardsellr.com' send='false'></fb:like>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment