I have the same problem. It looks like it depends on where I set up the script connection. Here is the code for getting SSL. You need to remove the connection script and go with the url channel.
<!-- COMMENT OUT <script src="https://connect.facebook.net/en_US/all.js"></script>--> <script type="text/javascript" charset="utf-8"> FB._https = (window.location.protocol == "https:"); window.fbAsyncInit = function() { FB.init({ appId : 'xxxxxxxxxxxxx', // App ID channelUrl : '<?php echo bloginfo('url');?>/channel.html', // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session oauth : true, // enable OAuth 2.0 xfbml : true // parse XFBML }); FB.Canvas.setAutoGrow(); } // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); //FB.Canvas.setAutoGrow(); /*FB.Event.subscribe('edge.create', function(response){ top.location.href = ''; }*/
Here is the code to get ifame to resize but break ssl. Add the script connection back and remove channelUrl. In fact, you do not need to remove channelUrl for it to work.
<script src="https://connect.facebook.net/en_US/all.js"></script> <script type="text/javascript" charset="utf-8"> FB._https = (window.location.protocol == "https:"); window.fbAsyncInit = function() { FB.init({ appId : 'xxxxxxxxxxxxxxx', // App ID //channelUrl : '<?php echo bloginfo('url');?>/channel.html', // Channel File status : true, // check login status cookie : true, // enable cookies to allow the server to access the session oauth : true, // enable OAuth 2.0 xfbml : true // parse XFBML }); FB.Canvas.setAutoGrow(); } // Load the SDK Asynchronously (function(d){ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0]; if (d.getElementById(id)) {return;} js = d.createElement('script'); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js"; ref.parentNode.insertBefore(js, ref); }(document)); //FB.Canvas.setAutoGrow(); /*FB.Event.subscribe('edge.create', function(response){ top.location.href = ''; }*/
I do not understand.
Phil
krazymatty Mar 20 2018-12-12T00: 00Z
source share