Search code examples
facebookiframehttpsfacebook-iframe

Facebook iframe triggers unsecure/secure warning


I'd like to use the Facebook social plugins (which are iframes) on my secure page. I have the facebook src attribute as "https://www.facebook...." which allows the page to render no problemo in Firefox, but for some reason, only on IE, this still triggers the warning that the page has both secure and unsecure elements. Any ideas?


EDIT: The problem is actually occuring in all browsers, not just IE. As described by Nathan below, there really isn't a solution besides not including the fb plugin.


Solution

  • There are two versions of the Facebook social plugins - the iframe format, and the XFBML format. The XFBML format harnesses Facebook's Javascript SDK and can be served over SSL. Pros and cons are that XFBML requires more work, and iframe format is a straight copy and paste. I have not tried yet, but is made clear in the aforementioned deocumentation.