作者chenson888 (chenson)
看板Web_Design
标题[问题] facebook 按赞 完全没有画面
时间Mon Oct 14 12:07:02 2013
各位前辈您好
小弟 Google 了 facebook 按赞的语法,
大家都说只要在网站贴上<iframe …> ….. </iframe> 就可以,
爬文也只有一篇 “Facebook赞钮网页在本机无法作用”
说到
iframe src="//" ← 问题在这里,改成 http:// 就行了
我也在
https://developers.facebook.com/docs/plugins/like-button/
产生一个按赞的 iframe 语法
我在 www.000webhost.com 申请一个 PHP 空间,
网址是
http://chenson888.hostei.com/
我也改成 http://
<iframe src="
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fchenson888.hostei.com%2F&width=The+pixel+width+of+the+plugin&height=80&colorscheme=light&layout=standard&action=like&show_faces=true&send=false"
scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:The
pixel width of the pluginpx; height:80px;" allowTransparency="true"></iframe>
可是就没有画面,完全没有画面(跟国防布因该没关系)
可是如果 直接输入
http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fchenson888.hostei.com%2F&width=The+pixel+width+of+the+plugin&height=80&colorscheme=light&layout=standard&action=like&show_faces=true&send=false
就会有 按赞 出现
请问先进 这是什麽原因 ?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 49.219.70.110
1F:推 aspdoctor:浏览器禁止快显视窗? 10/14 12:52
2F:→ aspdoctor:哦不对,那是分享的…… 10/14 12:53
3F:推 hit1205:// 其实可以不用改,比如"目前是用http",那 // 就代表 10/14 15:48
4F:→ hit1205:http://,"目前是https" 那就等於 https:// 10/14 15:48
5F:→ hit1205:我看了一下你的页面,脸书其实有把错误原因吐给你 10/14 15:49
6F:→ hit1205:The+pixel+width+of+the+plugin << 你忘记把这换成宽度 10/14 15:50
7F:→ hit1205:所以就出错了 XD 脸书的错误说明是: 宽度必须是数字 10/14 15:50
8F:→ chenson888:感谢 hit1205 的答覆 , 可以看到 按赞 的小手 ^^ 10/14 17:50