问题
An iframe loading a php app keeps looping when I view it in IE. One fix is to lower the privacy setting in IE from Medium to Low.
Is there a workaround on the server side? I tried the HTML header fix but with no success. Are there other suggestions? Thanks!
回答1:
I fixed the infinite loop in IE using
<?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?>
If not, you can try this setting on your Facebook
Source
回答2:
Try putting channelUrl file and code, see:
http://developers.facebook.com/docs/reference/javascript/FB.init/
<div id="fb-root"></div>
<script src="http://connect.facebook.net/en_US/all.js"></script>
<script>
document.domain = "mysite.com";
FB.init({
appId : 'YOUR APP ID',
channelUrl : 'http://www,mysite.com/channel.html' // custom channel
});
</script>
Contents of channel.html are :
<script> document.domain = "mysite.com"; </script>
<script src="http://connect.facebook.net/en_US/all.js"></script>
来源:https://stackoverflow.com/questions/5693745/facebook-php-app-keeps-looping-in-ie-is-there-a-fix-on-server-side