Search code examples
phpfacebookfacebook-likebox

Can I know with PHP that the Facebook LIKE Button is pressed?


Can I know with PHP that the Facebook LIKE Button is pressed? At the same time when the LIKE Button is pressed, I'd like to run the PHP code.


Solution

  • You'd need to use FB.Event.subscribe for the (rather absurdly named) edge.create event to fire an AJAX call to your server.