Having issue with Firefox 8 for Mac: window.name is undefined

烈酒焚心 提交于 2019-12-06 11:56:29

Solved: unbelievably, the only minor error was that I was using a global variable inside my JS file called "name". That's a serious no-no with the Facebook SDK (though not mentioned anywhere). I found the reasoning on a link I can't remember, but the primary issue is that the global name variable is mangled up with the window.name which is required by the FB api.

I'd simply suggest avoiding a global variable called name whether or not you use the Facebook SDK. Just in case.

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