Putting facebook like box into dreamweaver and not loading

雨燕双飞 提交于 2019-12-25 01:56:05

问题


Hey I am trying to get a like box onto a page. When I put in the code facebook gives me (which is Iframe) everything seems fine however when I preview it (Chrome, IE, Firefox, Safari) it says the webpage cannot be found. It's driving me up the wall! What am I doing wrong!

<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FGarlands-Restaurant-Bar-Grill%2F206020489468223&amp;width=192&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:192px; height:590px;" allowTransparency="true"></iframe>

回答1:


in the src the prefix http: is missing. Try this instead:

<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2F%23%21%2Fpages%2FGarlands-Restaurant-Bar-Grill%2F206020489468223&amp;width=192&amp;colorscheme=light&amp;show_faces=true&amp;border_color&amp;stream=true&amp;header=true&amp;height=590" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:192px; height:590px;" allowTransparency="true"></iframe>


来源:https://stackoverflow.com/questions/7883448/putting-facebook-like-box-into-dreamweaver-and-not-loading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!