我想将the new facebook "like" button添加到我的Blogger网站。如何将Facebook的“喜欢”按钮添加到Blogger博客?
我必须将URL传递给iframe src
中的博客文章。
我可以从<data:post.url/>
获得Blogger发布的网址,但是我不能将它放在src
字符串中,因为Blogger的模板系统很奇怪。
我想这样做:
<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'/>
但博客抱怨:因为它是没有很好地形成
您的模板无法解析。请确保所有XML元素都已正确关闭。
XML错误消息:属性的“SRC”与元素类型相关的“零”值不得包含“<”人物“
有谁知道这又工作
它从移动设备共享时附加参数m = 1。我如何获得没有任何参数的网址。 – StarWars 2015-04-04 14:46:56
使用'data:post.url.canonical'而不是'data:post.url',因此它是没有查询参数的URL。 – OdraEncoded 2017-01-09 00:40:41