user1231561
user1231561

Reputation: 3359

Facebook Iframe App - prompting for secure content although I have SSL installed?

Weve finally got SSL installed on our server, so that we can have users surfing our simple HTML iframe tabs.

The problem im experiencing is in IE8+IE9 and I only experience it when browsing with "Secure browsing" on. So if I visit the same page with just "http" everything works.

When I visit my iframe tab, I get prompted with a message saying something along the lines of:

"Only secure content is shown"

At this point I can see my content, but only 800px of height (it is higher). So seems that my javascript to autoresize havent been triggered yet.

<script type="text/javascript" >
FB.Canvas.setSize({ width: 520, height: 1400 });

window.fbAsyncInit = function() {
  FB.Canvas.setAutoGrow();
}

</script>

But then if I decide to click the button saying "Show all content", TWICE, then it will autoresize. Ive tried visiting other iframe tabs with "https" and dont seem to get prompted with this there.

Any ideas?

Upvotes: 1

Views: 540

Answers (1)

Lix
Lix

Reputation: 47976

The solution might be as simple as forcing the facebook JS SDK to be loaded over https. As opposed to using a protocol relative URL.
Please see this SO question that also talks about partially encrypted facebook pages.

Upvotes: 1

Related Questions