title: Get Facebook Embedded iframe video and post height
body: <p>I am trying to get the iframe height of the embedded facebook video and posts on my webpage. Since I am embedding a lot of different posts and videos, I am only <strong>specifying the width of the iframe, but not the height</strong>. Like the code here: </p>
  
  <p>For video:</p>
  
  <pre><code>&lt;iframe src="https://www.facebook.com/plugins/video.php?href=https%3A%2F%2Fwww.facebook.com%2Fbbcnews%2Fvideos%2F10153836161582217%2F&amp;show_text=1&amp;width=560" width="560" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>For Posts:</p>
  
  <pre><code>&lt;iframe src="https://www.facebook.com/plugins/post.php?href=https%3A%2F%2Fwww.facebook.com%2F9gag%2Fposts%2F10154878302591840&amp;width=500" width="500" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>Right now if I only specify the width, I got a iframe that is cut in half.<a href="http://i.stack.imgur.com/bUPMm.png" rel="nofollow">Video example</a></p>
  
  <p>My question is, it there a way to get <strong>the height of the content after the content has been rendered</strong> for the embedded video and posts. Is there a javascript way? or perhaps an API call that I can use?</p>
  
  <p>Thanks.</p>