title: How can I use Open Graph so Facebook embeds a swf in the wall when viewed in https?
body: <p>I've implemented opengraph as per the <a href="https://developers.facebook.com/docs/opengraph/" rel="nofollow">Facebook doumentation</a> to embed a video swf on the wall when the page is shared, e.g.</p>
  
  <pre><code>&lt;meta property="og:video" content="http://example.com/awesome.swf" /&gt;
  </code></pre>
  
  <p>This works as intended when Facebook is viewed over http. However when Facebook is viewed over https, the video displays in a new window rather than embedded. This is clearly to avoid browser mixed-mode warnings. I can replace the url in og:video with an https link to the swf, and that does play whether Facebook is viewed over http or https, e.g.</p>
  
  <pre><code>&lt;meta property="og:video" content="https://example.com/awesome.swf" /&gt;
  </code></pre>
  
  <p>While that works, <em>always</em> retrieving the swf over https is not a good solution because https comes at a performance cost. What I need is for the swf to be loaded from an http url when Facebook is viewed over http and an https url when Facebook is viewed over https. It works like this for some sites, e.g. YouTube and Vimeo. Neither of those appear to have anything special in their Open Graph markup that gives the https path.</p>
  
  <p>Is there something I can do, or does Facebook treat Vimeo and YouTube as special cases?</p>