2012-08-10 49 views
0

我在我的Fancybox中爲我的網站使用了Facebook like按鈕,我使用Zenphoto。這似乎只能使Fancybox中的按鈕顯示出來。讓FB喜歡抓取正確的URL

代碼:

this.title += '<iframe src="//www.facebook.com/plugins/like.php? href=http://www.dagloos.com' + this.href +   '&amp;layout=button_count&amp;show_faces=false&amp;width=500&amp;action=like&amp;font&amp;colorscheme=light&amp;height=23" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:80px; height:20px;" allowTransparency="true"></iframe>'; 

當有人點擊現在類似按鈕,通知等空白顯示的Facebook頁面上,與直接的圖像網址。我在我的網站的標題中添加了og標籤,但在喜歡的時候並沒有抓住它們。可能因爲iFrame版本已過時。

我怎麼能讓它像在圖片縮略圖上顯示在臉書上,如果有可能,其餘的信息(網站標題,描述等)?

回答

1
<iframe src="http://www.facebook.com/widgets/like.php?href=type in ur web address here" 
     scrolling="no" frameborder="0" 
     style="border:none; width:450px; height:80px"></iframe> 

在這裏

您的網絡地址的href類型後