2010-05-31 102 views
1

我在页面上有一个工作的Facebook fbml应用程序选项卡。它工作完美,但今天当我检查它产生了一个错误。Facebook应用程序选项卡页面上不工作

Errors while loading page from application 
Parse errors: 

FBML Error (line 18): illegal tag "body" under "fb:tab-position" 

FBML Error (line 26): illegal tag "noscript" under "fb:tab-position" 

FBML Error (line 44): illegal tag "noscript" under "fb:tab-position" 

Runtime errors: 

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. 

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 

我的设置是:

画布页面URL:http://apps.facebook.com/myfeedback/
帆布回调URL:http://mydomain/myfile/
标签名称:反馈
标签网址:http://apps.facebook.com/myfeedback/

这是一个没有任何主体标签的fbml应用程序

我无法找出相同的原因。请帮助我。谢谢

回答

2

在FBML应用程序/选项卡中,不允许使用body标记。你应该删除,你会没事的。下面是示例:

这是不允许的:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>Untitled Document</title> 
</head> 
<body> 
    <table> 
    <!-- your layout code --> 
    </table> 
</body> 
</html> 

这是允许的:

<table> 
    <!-- your layout code --> 
    </table> 
+0

感谢您的回复,但我的文件中没有body标签 – 2010-05-31 08:08:05

+0

@Pankaj:我在您的问题FBML错误(第18行)中看到此错误:“fb:tab-position”下的非法标签“body”你可以在代码中找到它,检入任何包含的文件,也可以检入页面源代码。 – Sarfraz 2010-05-31 08:14:43

+0

我已检查到处没有车身标签。 – 2010-05-31 08:33:06

1

我已经解决了这个问题。这是由根目录(mydomain)中存在的.htaccess文件中的一些规则造成的。我写了一个排除myfile文件夹的规则。 规则是:

RewriteCond %{REQUEST_URI} !^/myfile/ 

现在页面加载没有任何错误。

0

尝试更新您的帆布类型在高级设置选项卡底部的IFrame

相关问题