像 Box iFrame 生成的代码不工作

发布于 2024-12-23 13:54:52 字数 523 浏览 4 评论 0原文

我的点赞框没有随生成的代码一起显示。我已经阅读了此处的修复,有些提到将“配置文件 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

2024-12-30 13:54:52

您擦除了太多需要的部分,&符号很重要!

并且您在 http 之后缺少 : 这会导致问题。

这是一个工作版本(在按原样尝试之前不要删除下一个代码的部分)

<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FBluedawg-Design%2F70870858258&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 服务器提供服务,但如果从本地计算机打开(不通过 HTTP 或 HTTPS 提供服务)则无法工作,在以后的情况下只需输入 <代码>http:在//www.facebook.com之前

You wiped too much of needed parts, ampersands are important!

And you're missing : after http which leads to problem.

This is a working version (do not remove parts of next code before trying it as is)

<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FBluedawg-Design%2F70870858258&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>

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

可爱暴击 2024-12-30 13:54:52

只需将所有更改

http:// 

https://

“解决了问题”我还在 http://nerudo.mregi.com/social-widgets-twitter-flickr-and-fb-not-showing

just change all

http:// 

to

https://

That solved the issue I also wrote a post about it on http://nerudo.mregi.com/social-widgets-twitter-flickr-and-fb-not-showing

云柯 2024-12-30 13:54:52

您好,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

情定在深秋 2024-12-30 13:54:52

好吧,这真的很愚蠢,但它就发生在我身上:

关闭任何可能阻止“赞框”的浏览器扩展!就我而言,这就是 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.

内心荒芜 2024-12-30 13:54:52

我也发生了同样的事情,这是因为我也安装了“请勿跟踪我”。我禁用了它,没有更多问题。

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.

凉月流沐 2024-12-30 13:54:52

在 iframe 的 src= 中,尝试使用 ?href=http%3A%2F%2Fwww.facebook%0A.com%2Fpages%2FBluedawg-Design%2F70870858258 而不是未编码版本。

所以现在整个事情看起来像:

<iframe src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FBluedawg-Design%2F70870858258&width=292&height=590&colorscheme=light&show_faces=true&border_color&stream=true&header=true&appId=127211380649475" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>

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 src="//www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FBluedawg-Design%2F70870858258&width=292&height=590&colorscheme=light&show_faces=true&border_color&stream=true&header=true&appId=127211380649475" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:292px; height:590px;" allowTransparency="true"></iframe>
酒儿 2024-12-30 13:54:52

这是 iframe 代码,工作正常,并经过我在 wordpress 和 magento 上测试。

<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FEnter_Your_FB_ID_OR_USERNAME&width&height=290&colorscheme=dark&show_faces=true&header=true&stream=false&show_border=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:290px;" allowTransparency="true"></iframe>

Here is the iframe code working fine and tested by me on wordpress and magento.

<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2FEnter_Your_FB_ID_OR_USERNAME&width&height=290&colorscheme=dark&show_faces=true&header=true&stream=false&show_border=true" scrolling="no" frameborder="0" style="border:none; overflow:hidden; height:290px;" allowTransparency="true"></iframe>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文