如何将类似 Facebook 的页面框添加到 Squarespace 网站?
我正在尝试向我的 Squarespace 网站添加一个类似 facebook 的页面框,但遇到了一些麻烦。
该框的代码是从 facebook 生成的,在开发模式下工作正常,它显示了类似的框正常运行。但是,当我注销并只是查看网站时,会出现错误,告诉我“您尝试访问的页面受到限制或不可用”。
我从 FB 输入的代码是:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FNexus-Magazine%2F116070391739244&width=250&colorscheme=light&show_faces=true&stream=true&header=true&height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:427px;" allowTransparency="true"></iframe>
我联系了 Squarespace 支持人员,他们回复了: 租赁说明,在 squarespace 站点中编写、添加和修改编码是一种高级修改。 Squarespace 不提供代码故障排除/支持。您需要根据源代码检查您所使用的编码的有效性,以确保代码正确。
话虽这么说,在定位问题的过程中,我设法修复了您的 Facebook“按钮”的编码。您尝试引用的页面地址未显示相关字符,例如“http://”中的“:”和“//”,所有字符均显示为特殊字符的 HTML 编码:“%2” " = "/"
一旦我在 Facebook 页面的编码中更改了这些字符的 HTML 表示形式,问题就解决了。
他们将原来的代码更改为:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/Fpages/FNexus-Magazine/F116070391739244&width=270&colorscheme=light&show_faces=true&stream=true&header=true&height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:427px;" allowTransparency="true"></iframe>
虽然问题没有解决。
你有什么想法吗?
提前致谢!
干杯,
斯科特
I'm trying to add a facebook like page box to my Squarespace website and having some troubles.
The code for the box is generated from facebook, it works fine when in development mode, it shows the like box functioning as it should. But then when I log out and am just viewing the website an error comes up telling me "The page you are trying to access is restricted or unavailable".
The code I entered from FB was:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Fwww.facebook.com%2Fpages%2FNexus-Magazine%2F116070391739244&width=250&colorscheme=light&show_faces=true&stream=true&header=true&height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:427px;" allowTransparency="true"></iframe>
I contacted Squarespace support and they replied:
lease note, Writing, adding, and amending coding within your squarespace site is an advanced modification. Squarespace does not offer code troubleshooting/support. You will need to check the validity of the coding you are using against the source to make sure the code is correct.
That being said, In the process of locating the issue, I managed to fix the coding for your facebook 'button'. The address to the page you were trying to reference wasn't displaying pertinent characters, Like the ":" And "//" in "http://" All of the characters were displaying as HTML coding for special characters: "%2" = "/"
Once I changed the HTML representations of these characters within your coding for the Facebook page, the issue resolved.
They changed the original code to:
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http://www.facebook.com/Fpages/FNexus-Magazine/F116070391739244&width=270&colorscheme=light&show_faces=true&stream=true&header=true&height=427" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:427px;" allowTransparency="true"></iframe>
Although the issue was NOT resolved.
Have you any ideas?
Thanks in advance!
Cheers,
Scott
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://forum.developers.facebook.net/viewtopic.php?pid=284739 成功了。
http://forum.developers.facebook.net/viewtopic.php?pid=284739 worked.