I\'d like to do something on the page when a user clicks \'Like\'.
I thought something simple like the following would work:
You cannot use JavaScript to access elements within an iframe that does not belong to the current URL, as I guess the domain you're using is not facebook.com you won't be able to attach an event to the like button in this way.