facebook like button functionality


I want facebook like button and its functionality in my web page made in php. I have successfully done that. Now my question is, how the data will be stored into the database(mysql) of registered facebook user who has been clicked the like button.

You can use call back function like


For example, suppose you want to record Likes in your database whenever a button is clicked:

function(response) {
    alert('You liked the URL: ' + response);


Refer http://developers.facebook.com/docs/reference/javascript/FB.Event.subscribe/ for details