Bonjour!

Welcome and feel free to read the tales of my life. Glad if you could drop some words in my cbox. Love ya!
  • Best view in Google Chrome
  • Leave your footprint <3
  • The Blogger Mood
    I'm back babehhh!


Navigations



Talk to me

Cbox'); cboxwin.document.write(''); cboxwin.document.write(''); cboxwin.document.write(''); cboxwin.document.write('Cbox needs frames!'); try { x = screen.width; y = screen.height; cboxwin.moveTo(Math.max((x/2)-350, 0), Math.max((y/3)-500)); } catch (e) {}; } Come and have a talk here!
The Masterminds

Design: Raudah Nor
Header: Photoshop
Other: ♬ ♬
Sunday, 1 January 2012 • 00:07

Assalamualaikum,


Hari ni, saya nak bagi Tutorial pasal Facebook Like Button. Sekarang ni, ramai Bloggers yang letak benda ni dekat blog dia orang. Nak tengok contoh? Tengok je lah dekat Blog saya ni. Ada juga. Kan? Raudah pernah ambil code ni dekat blog orang lain. *Bukan curi, ya? Tengok tuto dia orang je. Tapi kan, code dia orang tak betul. Letak je dekat Blog, tetibe dah 40k likes this. Haha. So, code yang Raudah bagi ni, Raudah ambil dekat Facebook. Original code yang diberi oleh Facebook. Nah! Credit jangan lupa bila sudah guna orang punya tuto, ya! Pandai-pandailah menghargai pertolongan yang diberikan.


*Code ni, boleh letak dekat mana-mana sahaja. Ctrl+C kalau nak copy.


Counter version: 

(4K itu hanyalah contoh.)


Code:
<b:if cond='data:blog.pageType == "item"'><div id='fb-root'/><script>window.fbAsyncInit = function() {FB.init({appId: 'your app id', 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-root').appendChild(e);}());</script>
<fb:like action='like' colorscheme='light' expr:href='data:Post.url'layout='button_count' show_faces='true' width='500'/></b:if>


Box counter: 


Code:
<b:if cond='data:blog.pageType == "item"'><div id='fb-root'/><script>window.fbAsyncInit = function() {FB.init({appId: 'your app id', 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-root').appendChild(e);}());</script>
<fb:like action='like' colorscheme='light' expr:href='data:Post.url'layout='box_count' show_faces='true' width='500'/></b:if>


Standard: 


Code:
<b:if cond='data:blog.pageType == "item"'><div id='fb-root'/><script>window.fbAsyncInit = function() {FB.init({appId: 'your app id', 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-root').appendChild(e);}());</script>
<fb:like action='like' colorscheme='light' expr:href='data:Post.url'layout='standard' show_faces='true' width='500'/></b:if>


Itu sahaja yang dapat saya kongsikan pada hari ini. Sekian,