Bu kodların çalışması için app id almanız gerek.
http://developers.facebook.com/setup/ bu adrestende app id alabilirsiniz. Daha sonra kodlardan facebook'dan aldığınız app id yi aşağıdan "APP ID BURAYA GELİCEK" yazan yer ile değiştirin.
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({appId: 'APP ID BURAYA GELİCEK', status: true, cookie: true,
xfbml: true});
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/tr_TR/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>Şu kodları sitenize ekleyin. Butonu göstermek istediğiniz yere aşağıdaki kodları ekleyin.
<fb:like></fb:like>