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


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

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); = id;
js.src = "";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<div class="fb-video" data-href="" data-width="500" data-show-text="false"> 

I appreciate any help about this trouble.

1 Like