How to integrate Facebook Video Social Plugin in Ionic / cordova?

HI,

I am using ionic v 1.3. In which we want to use Facebook social video plugin.We integrated facebook video plugin but in that I am facing issue in ios and android App.

Here me facebook video ifarme is loaded with video thumbnail and play button but after tab on play button video is not playing.

But same code is working for me for web application.

I am referring below link

https://developers.facebook.com/docs/plugins/embedded-video-player/api


Sample code - I added below code in body tag

<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.6";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-video" data-href="https://www.facebook.com/facebook/videos/10153231379946729/" data-width="500" data-show-text="false"> 
      </div>
  </div>

I appreciate any help about this trouble.

1 Like