android - fb like button not shown in webview loading local html -


i use mwebview.loadurl("file:///android_asset/test.html") button not shown. , logcat show fb:like failed resize in 120s. how can resolve it?

test.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.3&appid=xxxxxxxxxx";       fjs.parentnode.insertbefore(js, fjs);     }(document, 'script', 'facebook-jssdk'));</script>     <div class="fb-like" data-href="https://developers.facebook.com/docs/plugins/" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div> 


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -