I am using this code to get the response:
<fb:like layout="button_count" notify="true" colorscheme="dark" href="http://www.fbrell.com"></fb:like>
<script>
// this will fire when any of the like widgets are "liked" by the user
FB.Event.subscribe('edge.create', function(href, widget) {
alert('You liked ' + href, widget);
});
</script>
It’s not giving any response. Can anyone tell what wrong am i doing ?
Assuming that you have the FB Like button appearing, so you must be including the SDK correctly, I was in exactly the same situation – all you’re missing is setting the subscribe up in the fbAsyncInit() function.
If you’re doing this you don’t need an application ID nor do you you need to use the FBML code, you can use the HTML5 inclusion code like
<div class='fb-like' data-href='...