2012-10-26 22 views
1

我試圖在我的博客上實現Facepile應用程序。但它不工作!使用在博客上實現Facepile應用程序

代碼分別爲:

<div id="fb-root"></div> 
<script>(function(d, s, id) { 
var js, fjs = d.getElementsByTagName(s)[0]; 
if (d.getElementById(id)) return; 
js = d.createElement(s); js.id = id; 
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=MY-APP-ID"; 
fjs.parentNode.insertBefore(js, fjs);`enter code here` 
}(document, 'script', 'facebook-jssdk'));</script> 

<div class="fb-facepile" data-href="http://schooloffour.blogspot.in/" data-action="&lt;fb:facepile href=&quot;http://zhen.myfbse.com/rb-roastchicken.html&quot; action=&quot;og_recipebox:planning_to_make&quot; width=&quot;300&quot; max_rows=&quot;1&quot;&gt;&lt;/fb:facepile&gt;" data-max-rows="1" data-width="300"></div> 

又增加了右後facepile:<data:post.body/>

顯示在模板代碼同時節省了它的錯誤是:錯誤解析XML,第634行,第62列:對實體「appId」的引用必須以';'結尾分隔符。

我該如何解決?

+0

[對實體「foo」的引用必須以';'結尾)定界符(http://stackoverflow.com/questions/6483807/the-reference-to-entity-foo-must-end-with-the-delimiter) – BalusC

回答

0

data-action屬性的值是錯誤的。 Facepile的正常格式爲

<div class="fb-facepile" data-href="www.imdb.com/title/tt0117500/" data-action="video.watches" data-max-rows="1" data-width="300"></div> 

使用此http://developers.facebook.com/docs/reference/plugins/facepile/可以獲得100%的運行代碼。填寫網址和操作,然後點擊「獲取代碼」按鈕。它使用HTML5,XFBML,IFRAME或URL編碼。選擇你喜歡的任何人。