jquery - How to play facebook in iframe using javascript? -
i tried use javascript play facebook video iframe not work.
how can ?
<div onclick="play_fn()"> click here play </div> <br> <script> function play_fn(){ $(#vid).play(); } </script> <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"> </iframe>
you cant directly run facebook video on site need api request
go through
https://developers.facebook.com/docs/plugins/embedded-video-player/
Comments
Post a Comment