Yorum kutusu oluşturma
1 Facebook hesabınıza giriş yapın
2 http://www.facebook.com/developers/createapp.php sayfasından uygulamaya katılın ve yenibir uygulama oluşturun ( sadece 1-2 kelime yazın kafi ) create dediğinizde bitmiş olacak
3 uygulama sayfasından oluşturduğunuz uygulamayı seçin ve api anahtarınızı alın
şimdi “http://developers.facebook.com sayfasına gidin ve api anahtarını girerek yorum kutusunu özelleştirin en boy renk vs vs (resimde anlatıldığı gibi) yerleştirin.
daha sonra sitenizin header kısmına yada arasında uygun bir yere şu kodları ( api anahtar kısmını düzenleyerek ) girin
Code:
<div id=”fb-yorum”></div> <script> window.fbAsyncInit = function() { FB.init({appId: ‘api kodunuzu buraya yazın’, status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement(‘script’); e.async = true; e.src = document.location.protocol + ‘//connect.facebook.net/en_US/all.js’; document.getElementById(‘fb-yorum’).appendChild(e); }()); </script>
şimdi sayfanızı açın;
sonuç
edit; beğen butonu için de aynı işlemler geçerlidir.
Like butonumuzun gözükmesini istediğimiz yere ;
Code:
<fb:like href=”<?php echo urlencode(get_permalink()); ?>” layout=”standard” show_faces=”false” width=”325″ action=”like” colorscheme=”light” />
header’de arasına
Code:
<div id=”fb-begen”></div> <script> window.fbAsyncInit = function() { FB.init({appId: ‘Api Kodunuz Buraya’, status: true, cookie: true, xfbml: true}); }; (function() { var e = document.createElement(‘script’); e.type = ‘text/javascript’; e.src = document.location.protocol + ‘//connect.facebook.net/tr_TR/all.js’; e.async = true; document.getElementById(‘fb-begen’).appendChild(e); }()); </script>