Ionic 2 Facebook comments widgets facebook comment is not displayed

I use the facebook comment plugin in my ionic application and use below code snippet in index.html

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

And the last HTML to display the comment box.

<div class="fb-comments" data-mobile="true" data-width="100%" page-href="https://facebook.com/" data-numposts="15"></div>

This works fine with chrome, but when I create an APK file and try to launch the application comment window silently for a second, please solve my problem

+4
source share

Source: https://habr.com/ru/post/1690913/


All Articles