I've searched high and low for this and can easily reproduce it. Running absolute latest PHP SDK and the JS is coming directly from facebook over an HTTPS connection. My 'MyAppId' and domain have been changed in the code that follows. Substitute your own to reproduce.
This is with Firefox 8 and Firebug.
Code to reproduce:
`
<body>
<div id="fb-root"></div>
<script type="text/javascript">
window.fbAsyncInit = function() {
FB.init({
appId: 'MyAppID',
status: true,
oauth : true,
cookie: true,
channelURL : 'https://www.mydomain.com/channel.html'
});
FB.Canvas.setAutoResize();
FB.Canvas.scrollTo(0,0);
};
(function() {
var e = document.createElement('script'); e.async = true;
e.src = document.location.protocol +
'//connect.facebook.net/en_US/all.js';
document.getElementById('fb-root').appendChild(e);
}());
</script>
Test
</body>
</html>
`
It is most definitely the calls to FB.Canvas that are generating the error. If I comment both out, no error. If I uncomment one or the other or both - Error.
The code was working fine until a few days ago. Targeting the top of the page and scaling the iframe properly. I believe this is a FB JS error.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…