How to Add Like Box To Your Website ?
1. Copy These Text:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=212884458812671";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
2. Paste It In your Webpage .
3. Now Add Like Box Syntax:
<div class="fb-like" data-href="URL TO LIKE" data-send="DATA SEND TYPE" data-width="DATA WIDTH" data-show-faces="FACES" layout="LAYOUT"></div>
URL TO LIKE
Enter The URL TO Like Here. Example - http://www.e-pctips.blogspot.com
DATA SEND TYPE
If You Want to add button for Sending make its value to TRUE or if you dont want to add Send Button Make it Value FALSE
DATA WIDTH
Width of Your Like Button in Numerica Values , Ex- 450
FACES
Set TRUE if you want that the user can see the face of his/her friends who liked it.
LAYOUT
Layout of You Like Button.
Set STANDARD for:
Set BUTTON_COUNT for:
and set BOX_COUNT for:
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=212884458812671";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
2. Paste It In your Webpage .
3. Now Add Like Box Syntax:
<div class="fb-like" data-href="URL TO LIKE" data-send="DATA SEND TYPE" data-width="DATA WIDTH" data-show-faces="FACES" layout="LAYOUT"></div>
URL TO LIKE
Enter The URL TO Like Here. Example - http://www.e-pctips.blogspot.com
DATA SEND TYPE
If You Want to add button for Sending make its value to TRUE or if you dont want to add Send Button Make it Value FALSE
DATA WIDTH
Width of Your Like Button in Numerica Values , Ex- 450
FACES
Set TRUE if you want that the user can see the face of his/her friends who liked it.
LAYOUT
Layout of You Like Button.
Set STANDARD for:
Set BUTTON_COUNT for:
and set BOX_COUNT for:
Or Try Facebook Official Like Button Generator
http://developers.facebook.com/docs/reference/plugins/like/
Comments
Post a Comment
Do Not Spam