当前位置: 动力学知识库 > 问答 > 编程问答 >

Facebook and https adding <div id="fb-root" and the file is unsecure?

问题描述:

anyone notice the will cause your https:// to be unsecure??

When i directly point the browser to https://.../myfb_app/ the file isn't parse as secure if i have the

<div id="fb-root"></div>

somewhere in the file.

but when i remove

<div id="fb-root"></div>

, the whole file does parse as secure.

What is the cause and how can i fix this?

Any suggestions??

Regards

网友答案:

This should answer your question: Facebook JavaScript SDK over HTTPS loading non-secure items.

In short, add FB._https = true; before FB.init to force Facebook load files over secure connection.

分享给朋友:
您可能感兴趣的文章:
随机阅读: