开发者

How to detect if Facebook iframe is loaded..?

开发者 https://www.devze.com 2023-02-23 17:44 出处:网络
I\'m loading an iframe Facebook Like Button on a website. Problem is, sometimes, I get warning that the SSL certificates is wrong (something to do with akamai). Instead of seing Facebook button and

I'm loading an iframe Facebook Like Button on a website.

Problem is, sometimes, I get warning that the SSL certificates is wrong (something to do with akamai). Instead of seing Facebook button and text, I get browser warning of Untrusted Certificate...

When that happens on the website with the iframe, I can then go to https://www.facebook.com/ and that would fail as well, so it's really a FB problem.

Not using the SSL version is not an option, since I would then get mixed content warning.

So what I would like is to somehow, detect if Facebook loads correctly, then displa开发者_高级运维y my iframe with CSS.

Is it something that can be done.?

0

精彩评论

暂无评论...
验证码 换一张
取 消