【问题标题】:HTML in Facebook tab not allowed不允许在 Facebook 选项卡中使用 HTML
【发布时间】:2010-12-22 10:14:42
【问题描述】:

我想添加一个标签,其中包含我制作的页面中的内容到我的粉丝页面。

我在这里为它设置了一个应用程序:http://apps.facebook.com/like_analytics/ 如您所见,它正确加载。

但是,当我为它创建一个标签并将其添加到我的页面时:http://www.facebook.com/pages/Like-Button-Analytics/115713315157219?v=app_170556839635845

我明白了:

Application temporarily unavailable
Parse errors:
FBML Error (line 17): illegal tag "body" under "fb:tab-position"
Runtime errors:
HTML error while rendering tag "script": App exceeded maximum number of script references
HTML error while rendering tag "script": App exceeded maximum number of script references
HTML error while rendering tag "link": There is a hard limit of 2 css link tags on profile tabs in order to remain under the IE 31 tag limit.
Cannot allow external script

看起来我不能在选项卡上拥有完整的 HTML 页面,但我需要用于语法高亮等的脚本。 有什么办法可以做到这一点?

提姆

【问题讨论】:

    标签: facebook


    【解决方案1】:

    在 facebook 选项卡中,您不能像经常使用的那样使用 html。

    您可以放在 facebook 标签中的 html 部分由 body 标签的内容组成。这意味着您不能使用body 标签,也不能使用htmlhead

    如果您需要插入 css 或 javascript 代码,您可以使用 style 标签。祝你好运;)

    【讨论】:

      【解决方案2】:

      现在允许在页面选项卡中使用 iFrame。

      如果您仍然在“fb:tab-position”下看到 illegal tag “body” 错误,请以页面管理员身份登录,查看页面并单击以下位置的“升级”按钮将您的页面升级到新的布局和功能。

      【讨论】:

        猜你喜欢
        • 2018-10-04
        • 1970-01-01
        • 2015-05-29
        • 1970-01-01
        • 2020-06-09
        • 1970-01-01
        • 2011-12-28
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多