How to use facebook plugin in my blogspot ?
How to use facebook plugin in my blogspot ?
The instruction of "how to use facebook plugin in my blogspot ?" or
"How to Implement Facebook JavaScript SDK on Your Website ?"
The Facebook Like button lets a user share your content with your fb friends. When the user clicks the Like button from your site, a story appears in the user's friends' facebook wall with a link back to your website.This is useful to your blogspot or website any platform.
If you are using WordPress Platform, open the single.php file and add the following code. You may change the height and width of the IFRAME as per your blog design.
<iframe src="http://www.facebook.com/plugins/like.php?href=<?php echo urlencode(get_permalink()); ?>&layout=standard&show-faces=true&width=530& amp;height=60&action=like&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:530px; height:60px"></iframe>
If you are using the Blogger/Blogspot,using the following code. The code is :Latest
<iframe src="http://www.facebook.com/plugins/like.php?href=<$BlogItemPermalinkUrl$>& amp;layout=standard&show-faces=true&width=530&height=60&action=like& amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:530px; height:60px"></iframe>
New Version
<iframe expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&layout=standard&show-faces=true&width=530&height=60& amp;action=like&colorscheme=light"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:530px; height:60px' allowTransparency='true'></iframe>
Final Instruction
1.Go with the link which given on HERE.
2.Write down your web page/blog URL in "URL to Like"
3.Customize your won.
4.Click on Get Code
5.Copy the code which in HTML5 1st box "Include the JavaScript SDK on your page once, ideally right after the opening <body> tag". Follow the Final Instruction.
6.Copy the code which in HTML5 2nd box"Place the code for your plugin wherever you want the plugin to appear on your page".
0 comments:
Post a Comment