Beyaz.Net İpucu
HTML sayfasına facebook yorum yazma alanı ekleme
yazma editörünün çıkmasını istediğimiz yere
<fb:comments width="500"></fb:comments>
<script>
FB.Event.subscribe('comments.add', function(resp) {
Log.info('Comment was added', resp);
});
</script>
kodunu ekliyoruz. width="665" özelliğini tasarımınıza göre değiştirebilirsiniz.
<body>
html tagının hemen altına da
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: 'ornekapplicationkodu', 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>
kodunu ekliyorsunuz. ornekapplicationkodu nuz yoksa facebook.com/developers adresinden uygulama oluştur diyerek id nizi oluşturabilirsiniz.
<fb:comments width="500"></fb:comments>
<script>
FB.Event.subscribe('comments.add', function(resp) {
Log.info('Comment was added', resp);
});
</script>
kodunu ekliyoruz. width="665" özelliğini tasarımınıza göre değiştirebilirsiniz.
<body>
html tagının hemen altına da
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({appId: 'ornekapplicationkodu', 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>
kodunu ekliyorsunuz. ornekapplicationkodu nuz yoksa facebook.com/developers adresinden uygulama oluştur diyerek id nizi oluşturabilirsiniz.