I am using the following code to alert the user when he click the facebook like button. It is alerting the user only on Opera browser. How do I fix this problem and make it work with all browsers ?
<script>
FB.Event.subscribe('edge.create',
function(response) {
alert("You liked the URL");
}
);
</script>
I can also use Jquery.
Where did you put this code ?
For me you have to put this in the init like this :
If you have already call the FB.init, you have to use a trick like this :