How can I know if the user has clicked on the "Like" button?





Appreciate if you can like this page if you find it useful! - Click "Like"

To get notified when the user click on the "like" button, you have to

  • first initialize the JavaScript SDK

  • Then subscribe the 'edge.create' event. Sample code is given below:

FB.Event.subscribe('edge.create', function (a) {
     //  action to perform when user like the like button



Find my FAQ on Facebook Development useful? Download the PDF for all the FAQs HERE!