Facebook php app keeps looping in IE, is there a fix on server side?

对着背影说爱祢 提交于 2020-01-06 08:15:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!