new Facebook Like button for Blogger
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-04-21T20:54:10Z
Indexed on
2010/04/22
1:33 UTC
Read the original article
Hit count: 348
I want to add the new facebook like button to my blogger website. http://developers.facebook.com/docs/reference/plugins/like
I have to pass the url to the blog posts in the iframe src tag.
I can get the blogger posts url from <data:post.url/>
but I can't put that in a src string because Bloggers template system is weird.
I want to do this:<iframe allowTransparency='true' frameborder='0' scrolling='no' src='http://www.facebook.com/plugins/like.php?href=<data:post.url/>&layout=standard&show-faces=true&width=450&action=like&colorscheme=light' style='border:none; overflow:hidden; width:450px; height:px'/>
but blogger complains:
"Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
XML error message: The value of attribute "src" associated with an element type "null" must not contain the '<' character."
Anybody have this working yet?
© Stack Overflow or respective owner