So, I tested with the Iframe method too. It is actually the most easiest way to insert Facebook like to your blogger post. I am still using the FBML version though.
Here is how you do it.
For Blogger/Blogspot
Go to Layout (Design) > Edit HTML and check “Expand Widget Templates”.
Find <data:post.body/> and Below the line add the following codes.
<b:if cond='data:blog.pageType != "static_page"'> <iframe allowTransparency='true' expr:src='"http://www.facebook.com/plugins/like.php?href=" + data:post.url + "&send=false&layout=button_count&show_faces=false&width=90&action=like&font=arial&colorscheme=light&height=21"' frameborder='0' scrolling='no' style='border:none; overflow:hidden; width:90px; height:21px;'/> </b:if>
The blue coloured ones can be changed according to the your needs. Or got tohttp://developers.facebook.com/docs/reference/plugins/like/ and customize your Button.
See related post : http://likeweb.blogspot.com/2011/10/finally-i-got-facebook-like-button.html
Test the FBML and IFrame version, and share which one works best with you.



ليست هناك تعليقات:
إرسال تعليق