Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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
Posted
Comments
ZurdoDev 17-Nov-15 20:06pm    
Click Improve question and post the relevant code. Also check facebook dev forums, if there are any.

1 solution

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

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


/Darren
 
Share this answer
 
Comments
elshorbagy 19-Nov-15 7:33am    
I created the whole project in javascript and HTML5. I complied it on phonegap website.I don't have a way to modify the webview control.

I read that I have to add a plugin to make the facebook comment plugin on my application, but I don't know if that is true or not
Darren_vms 23-Nov-15 3:23am    
There are plenty of ways to debug your phonegap code on android:

o logcat
o Weinre: http://people.apache.org/~pmuellr/weinre/docs/latest/Home.html
o Chrome Remote Debugging (only Android 4.4+): https://developer.chrome.com/devtools/docs/remote-debugging

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900