【发布时间】:2011-10-16 01:47:04
【问题描述】:
我开发了一个可以在 Chrome、Internet Explorer 9 和 Mozilla 中运行的应用程序,但在 Internet Explorer 8 中没有运气。即使没有通过 Facebook,我在 Internet Explorer 中也会出现空白屏幕。奇怪的是,如果我查看页面源代码,我可以看到所有源代码。在FB里还是一样的白屏。
我正在使用 IE8。我发现的一切都可以追溯到 P3P 策略。每个站点都说要制定一个策略,以便 cookie 可以通过并且会话将运行。
这是我找到的link。
是的,这些已经实施。包括 FB 在他们自己的网站上使用 HONK hack 来绕过 IE 3rd 方 cookie 安全问题。
是的,我已经成功地更改了隐私设置。
有人知道这有什么问题吗?代码如下所示:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html id="facebook" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- START Init Facebook App -->
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
FB.init({
appId:'298230576859720',
cookie:true,
status:true,
xfbml:true,
authResponse:true,
oauth : true });
</script>
<!-- END Init Facebook App -->
<script type="text/javascript">
// START Facebook JS Feed Pop Up Code
function FBRoutine(){ // If user isn't already authenticated or logged in get authentication
FB.getLoginStatus(function(response) {
if (response.authResponse) {
// logged in and connected user, someone you know
//alert ('authed already');
// alert (response.status);
// FBFeed(); // Show feed pop up
window.location = "facebook-step-03-optin.php";
} else {
// no user session available, someone you dont know
//alert ('not authed');
//alert (response.status);
window.location = "facebook-step-02-login.php";
};
}); // End getLoginStatus
}; // End function
// END Facebook JS Feed Pop Up Code
FBRoutine(); // Run routine to detect FB authentication prior to submitting form and after validation.
</script>
【问题讨论】:
-
不确定是否是问题的原因,但您的 HTML 无效。头部有一个
<div>,应该在正文部分,似乎完全丢失了。
标签: internet-explorer-8 facebook