Facebook / FBML - 我可以使用 FBML 在个人资料页面的选项卡中创建 Iframe 吗?
我想在 Facebook 个人资料的选项卡中创建一个 Iframe。选项卡内或个人资料页面上是否有任何标签限制?
个人资料/标签设置示例: http://www.facebook.com /#!/AvonProductsInc?v=app_10442206389&ref=ts
I want to create an Iframe within a Tab on a facebook profile. Are there any tag restrictions inside of a Tab or on a Profile Page?
Example profile/tag setup: http://www.facebook.com/#!/AvonProductsInc?v=app_10442206389&ref=ts
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不幸的是,您可以在个人资料页面上包含的 FMBL 内容受到限制。这些限制之一是个人资料页面上没有 iframe。
http://developers.facebook.com/docs/reference/fbml/iframe
Unfortunately, there are restrictions on what FMBL you can include on a profile page. One of these restrictions is no iframes on profile pages.
http://developers.facebook.com/docs/reference/fbml/iframe
好消息 - 选项卡现在支持 iFrame。事实上,2011 年 3 月 11 日之后,FBML 似乎将在新标签上被禁止。
http:// Developers.facebook.com/blog/post/462
Good news - iFrames are now supported on tabs. In fact, it looks like FBML will be disallowed on new tabs after March 11, 2011.
http://developers.facebook.com/blog/post/462
正如 Jason 提到的,您现在可以在页面选项卡中使用 iFrame。但是,为了解决 user613346 提到的问题,您必须“升级”您的页面。
要升级您的页面,请以页面管理员身份登录后查看页面。您应该会在顶部看到一个按钮,提示您预览或升级页面。
升级页面切换到新布局,将导航移动到左侧(以及其他一些小事情)。它还允许 iFrame 在您的选项卡中工作。
这没有很好的记录。希望可以让别人免于拔掉头发。
As Jason mentioned, you can now use iFrames in your Page Tabs. But, in order to work around the issue user613346 mentioned you have to "upgrade" your page.
To upgrade your page, view the page when you're logged in as a page admin. You should see a button at the top that prompts you to preview or upgrade the page.
Upgrading the page switches to the new layout which moves the nav to the left side (and a few other minor things). It also lets iFrames work inside your tabs.
This isn't very well documented. Hope is saves someone else from pulling their hair out.