将Facebook评论插件添加到HTML5移动应用程序 [英] Add facebook comment plugin to HTML5 mobile application

查看:97
本文介绍了将Facebook评论插件添加到HTML5移动应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用HTML5和javascript构建了一个移动应用程序,我将facebook评论插件添加到他们的页面。

当我在Web服务器上运行页面时,我可以看到评论插件,但是当我从手机上运行页面或安装APK文件后,该插件无效。任何想法?



谢谢你

I built a mobile application using HTML5 & javascript,I added the facebook comment plugin to a page of them.
When I run the page on a web server, I can see the comment plugin, but when I run the page from the mobile or after installing the APK file, the plugin does not work.Any Ideas?

Thank you

推荐答案

如果您使用的是webview,则默认情况下禁用java脚本,以启用此类内容。



If you are using a webview then java script is disabled by default, to enable use something like this.

WebView myWebView = (WebView) findViewById(R.id.webview);
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);





/ Darren



/Darren


这篇关于将Facebook评论插件添加到HTML5移动应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆