Facebook LIKE Page iFrame显示WebPage不可用

时间:2013-02-23 21:22:39

标签: html facebook iframe

我正在尝试在我的网站上为Facebook创建一个Like按钮,我从Facebook收到了iFrame代码,但它没有显示!

<iframe src="//www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FSuper-Short-Comedy-Show%2F105982759575529&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=true&amp;font=lucida+grande&amp;colorscheme=dark&amp;action=like&amp;height=90&amp;appId=542903592396470" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:90px;" allowTransparency="true"></iframe>

有关如何解决此问题的任何想法?

1 个答案:

答案 0 :(得分:0)

试试这个:

<iframe src=\"http://www.facebook.com/plugins/likebox.php?id=PASS_YOUR_FACEBOOK_PAGE_ID&amp;width=292&amp;connections=0&amp;stream=false&amp;header=false&amp;height=62\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:282px; height:62px;\" allowTransparency=\"true\"></iframe>

而不是我的'PASS_YOUR_FACEBOOK_PAGE_ID',在那里传递pageid。

对于Facebook开发者页面的例子:

<iframe src=\"http://www.facebook.com/plugins/likebox.php?id=19292868552&amp;width=292&amp;connections=0&amp;stream=false&amp;header=false&amp;height=62\" scrolling=\"no\" frameborder=\"0\" style=\"border:none; overflow:hidden; width:282px; height:62px;\" allowTransparency=\"true\"></iframe>

希望它有所帮助。 :)

最终修改

对于您目前正在拉动的特定页面,请尝试此操作 -

<iframe src="http://www.facebook.com/plugins/likebox.php?id=105982759575529&amp;width=292&amp;connections=0&amp;stream=false&amp;header=false&amp;height=62" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:282px; height:62px;" allowTransparency="true"></iframe>