我想將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