Wednesday, June 23, 2010

FaceBook Javascript SDK Like button examples


<h1>Explicit href</h1>
<fb:like href=""></fb:like>

<h1>Custom Font</h1>
<fb:like font="trebuchet ms" href=""></fb:like>

<h1>Disable Faces</h1>
<fb:like show_faces="no" href=""></fb:like>

<h1>Button Count</h1>
<fb:like layout="button_count" href=""></fb:like>

<fb:like width="200" href=""></fb:like>

<h1>Narrow no faces</h1>
<fb:like width="200" show_faces="no" href=""></fb:like>

<fb:like href=""></fb:like>

<div style="background-color: black; padding: 10px;">
<fb:like colorscheme="dark" href=""></fb:like>

<h1>Dark Button SuscribeCount</h1>
<fb:like layout="button_count" colorscheme="dark" href=""></fb:like>

To Subscribe the likes

// this will fire when any of the like widgets are "liked" by the user
FB.Event.subscribe('edge.create', function(href, widget) {'You liked ' + href, widget);

Source: -> examples

No comments: