我过去曾在雅虎网站建设者中使用过像facebook一样的盒子,并且从http://developers.facebook.com/docs/reference/plugins/like-box/创建代码并将其粘贴到html框中从未遇到任何问题。现在随着Facebook的改变,它不再适用了。
过去的代码:(工作正常)
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FCedar-Park-TX%2FPromotional-Product-Specialty%2F113782388677670&width=292&colorscheme=light&connections=10&stream=true&header=true&height=587" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:587px;" allowTransparency="true"></iframe>
新代码:(不起作用)
<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FPromotional-Product-Specialty%2F113782388677670&width=292&height=590&colorscheme=light&show_faces=true&border_color&stream=true&header=true&appId=306388216066339" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>
答案 0 :(得分:0)
我也遇到了这个错误,你要做的就是放置http://www.facebook.com的infront 所以它是这样的:
<iframe src=//www.facebook.com..........
到此:
<iframe src=http://www.facebook.com..........