facebook like button functionality

advertisements

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

FB.Event.subscribe

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

FB.Event.subscribe('edge.create',
function(response) {
    alert('You liked the URL: ' + response);
}

);

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