I am using facebook like button on my website for increasing popularity of my website so when any user click on like or dislike button at that time I am able to get button click event by following code
FB.Event.subscribe("edge.create", function(targetUrl) {
console.log('Like button clicked');
});
FB.Event.subscribe("edge.remove", function(targetUrl) {
console.log('Unlike button clicked');
}) ;
But some time New window is displayed with like button at that time I am unable to get click event. I am attaching image as well for better understanding purpose
Can anybody help me on this? I just want to get status or access of like button or cancel button from newly opened window. Can anybody help me on this?