像 Box iFrame 生成的代码不工作
我的点赞框没有随生成的代码一起显示。我已经阅读了此处的修复,有些提到将“配置文件 id”更改为“id”,但在我生成的代码中似乎没有任何此类代码 - 还修复了所有&符号(我认为)...这是我所拥有的不起作用。我应该如何改变它?谢谢!我收到以下代码的 404 错误:
<iframe
src="http//www.facebook.com/plugins/likebox.php?href=http://www.facebook
.com/pages/Bluedawg-Design/70870858258;width=450;
height=590;colorscheme=light;show_faces=true;border_color;stream=
true;header=true" scrolling="no" frameborder="0" style="border:none;
overflow:hidden; width:450px; height:590px;"
allowTransparency="true"></iframe>
My like box is not showing up with the code generated. I have read through the fixes here and some refer to changing "profile id" to just "id" but there doesn't seam to be any such code in my generated code - also fixed all ampersands (I think)... This is what I have that does not work. How should I change it? Thanks! I get a 404 error with this code:
<iframe
src="http//www.facebook.com/plugins/likebox.php?href=http://www.facebook
.com/pages/Bluedawg-Design/70870858258;width=450;
height=590;colorscheme=light;show_faces=true;border_color;stream=
true;header=true" scrolling="no" frameborder="0" style="border:none;
overflow:hidden; width:450px; height:590px;"
allowTransparency="true"></iframe>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
您擦除了太多需要的部分,&符号很重要!
并且您在
http
之后缺少:
这会导致问题。这是一个工作版本(在按原样尝试之前不要删除下一个代码的部分)
此代码可以完美地由 Web 服务器提供服务,但如果从本地计算机打开(不通过 HTTP 或 HTTPS 提供服务)则无法工作,在以后的情况下只需输入 <代码>http:在
//www.facebook.com
之前You wiped too much of needed parts, ampersands are important!
And you're missing
:
afterhttp
which leads to problem.This is a working version (do not remove parts of next code before trying it as is)
This code works perfectly served by web server but will not work if opened from local machine (not served over HTTP or HTTPS) in later case just put
http:
before//www.facebook.com
只需将所有更改
为
“解决了问题”我还在 http://nerudo.mregi.com/social-widgets-twitter-flickr-and-fb-not-showing
just change all
to
That solved the issue I also wrote a post about it on http://nerudo.mregi.com/social-widgets-twitter-flickr-and-fb-not-showing
您好,Facebook iframe(如框)不适用于个人资料或群组资料。请使用您的 Facebook 帐户或使用新的企业帐户单击 Facebook 底部的“创建页面”链接来创建一个新页面...使用以下命令生成新代码该链接将起作用:)快乐编码
Hi Facebook iframes (like box ) will not work for personal profile or group profile ..please create a one new page by clicking create page link in bottom of facebook using ur facebook account or using new business account ...generate a new code using that link it ll work :) happy coding
好吧,这真的很愚蠢,但它就发生在我身上:
关闭任何可能阻止“赞框”的浏览器扩展!就我而言,这就是 Firefox 中的“不要跟踪我”。
Okay this is really stupid, but it just happened to me:
Turn off any browser extension that might be blocking the Like Box! In my case that was "Do not track me" in Firefox.
我也发生了同样的事情,这是因为我也安装了“请勿跟踪我”。我禁用了它,没有更多问题。
I had the same thing happening and it was because I had "DO NOT TRACK ME" installed as well. I disabled it and no more problems.
在 iframe 的 src= 中,尝试使用
?href=http%3A%2F%2Fwww.facebook%0A.com%2Fpages%2FBluedawg-Design%2F70870858258
而不是未编码版本。所以现在整个事情看起来像:
In the
src=
of the iframe try using?href=http%3A%2F%2Fwww.facebook%0A.com%2Fpages%2FBluedawg-Design%2F70870858258
rather than the un-encoded version.So now the whole thing will look like:
这是 iframe 代码,工作正常,并经过我在 wordpress 和 magento 上测试。
Here is the iframe code working fine and tested by me on wordpress and magento.