title: How to play facebook in iframe using javascript?
body: <p>I tried to use javascript play facebook video from iframe but not work.</p>
  
  <p>How can i do ?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div onclick="play_fn()"&gt;
  click here to play
  &lt;/div&gt;
  &lt;br&gt;
  &lt;script&gt;
  function play_fn(){
      $(#vid).play();
  }
  &lt;/script&gt;
  
  &lt;iframe id="vid" width="560" height="315" 
    style="border:none;overflow:hidden" 
    scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true" src="https://www.facebook.com/video/embed?video_id=10157271716931509"&gt;
  &lt;/iframe&gt;</code></pre>
  </div>
  </div>
  </p>