我决定将FB登录/共享功能集成到我的网站.但是,我无法使简单的脚本工作,因为我得到http // https协议错误:
Uncaught SecurityError: Blocked a frame with origin "https://staticxx.facebook.com" from accessing a frame with origin "http://www.my-site.com". The frame requesting access has a protocol of "https", the frame being accessed has a protocol of "http". Protocols must match.
我从FB文档复制粘贴的代码是:
实际上,当我运行登录脚本时,我得到了同样的错误.
我在这里和这里看了答案,但他们在我的情况下没有工作.
得到它了.感谢另一个问题:Facebook Uncaught SecurityError
从chrome扩展禁用'RIPPLE EMULATOR'.