2013-03-07 59 views
1

我有一個網站運行下面的代碼:Facebook的fanbox自定義CSS

<iframe class="fanbox" width="472" height="220" src="http://www.connect.facebook.com/widgets/fan.php?href=<?php echo urlencode('http://www.facebook.com/my-website-page'); ?>&amp;width=472&amp;colorscheme=light&amp;show_faces=true&amp;stream=false&amp;header=false&amp;height=220&amp;css=<?php echo urlencode('http://mywebsite.com/css/fb-style.css'); ?>"></iframe> 

這是工作,但它似乎是Facebook的刪除讓風扇箱的這種方法。現在,我收到404找不到錯誤:http://www.connect.facebook.com/widgets/fan.php

這是真的刪除/移動?我現在該怎麼做?

+0

我發現在谷歌一些替代品,但他們都似乎彼此非常不同。什麼是「正確的方式」? – lucaswxp 2013-03-07 04:02:48

回答

0

您應該使用Like Box here。如果你只是想要「粉絲」圖片,那麼取消「流」等等,直到你得到你想要的東西。然後點擊「Get Code」並在對話框中選擇「IFrame」。

在你的榜樣,那就是:

<iframe src="//www.facebook.com/plugins/likebox.php?href=<?php echo urlencode('YOUR_FB_URL'); ?>&amp;width=292&amp;height=258&amp;show_faces=true&amp;colorscheme=light&amp;stream=false&amp;border_color&amp;header=false&amp" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:258px;" allowTransparency="true"></iframe>