This solution has been working for others:
Code:
$('#likebutton').click(function(){
$.ajax({
type: 'POST',
url: 'https://graph.facebook.com/OBJECT_ID/likes?method=POST&format=json&access_token=TOKEN,
success: function(res) {
// do something like style button
}
});
});
The reason why it doesn't work for you when you copy the URL it's because the actual "like" is sent by an AJAX request and it's not sent by just sending the user to a specific URL.
I got the code example from this StackOverflow question:
http://stackoverflow.com/questions/5...facebook-photo