a. Reka sebuah aplikasi facebook di sini
- masukkan nama aplikasi [ikut kesukaan korang]
- pilih agree [setuju]
b. Lalui pemeriksaan keselematan
c. Lengkapkan maklumat aplikasi [save terus pun tak pa juga, sebab kita cuma nak ambil ‘APP ID’]
d. Simpan APP ID korang baik-baik
a. Log In >> Papan Pemuka >> Reka Bentuk >> HTML Edit
b. cari kod <head> dan paste/tampal kod berikut sebelumnya.
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
appId : 'YOUR APP ID',
status : true, // check login status
cookie : true, // enable cookies to allow the server to access the session
xfbml : true // parse XFBML
});
};
(function() {
var e = document.createElement('script');
e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
e.async = true;
document.getElementById('fb-root').appendChild(e);
}());
</script>
c. Gantikan ‘YOUR APP ID‘ dengan APP ID yang telah didapati dari Aplikasi Facebook.
d. Simpan!
a. Log In >> Papan Pemuka >> Reka Bentuk >> Edit HTML
b. tandakan ‘‘ atau ‘expand template widget‘
c. cari <div class=’post-footer-line post-footer-line-2′>
d. paste/tampal kod berikut selepas kod tersebut :
<b:if cond='data:blog.pageType == "item"'>
<h3>Komen Via Facebook</h3><script src='https://connect.facebook.net/en_US/all.js#xfbml=1'/>
<div><fb:comments expr:href='data:post.url' expr:title='data:post.title' expr:xid='data:post.id' width='550'/></div>
</b:if>
d. Simpan!
e. SIAP! (hehehe)
-tutorial ini merupakan versi kemaskini-
salam ziarah