I am currently trying to load an html page that will call the FaceBook SDK to be envoked in order to do a LIKE and SHARE.
I turn-on JavaScript on the WebView with a:
The html file that is being loaded into the Webview looks like this:
The list of web links show and work... but no JavaScript is being run, it would appear (because the LIKE and SHARE buttons are not showing).
...
So, my question is - isn't JavaScript supposed to now be running when the page loads into the WebView?
And, if so, why aren't a LIKE and SHARE button being displayed?
Doesn't setting
allow embedded JavaScript in <script> (and other places Javascript should run) to run?
I turn-on JavaScript on the WebView with a:
B4X:
WebViewURL.JavaScriptEnabled = True
The html file that is being loaded into the Webview looks like this:
B4X:
<html>
<head>
<title>Weblinks</title>
</head>
<body bgcolor=white>
<!-- https://developers.facebook.com/docs/javascript/quickstart/v2.1 -->
<!-- https://developers.facebook.com/docs/plugins/like-button -->
<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 = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=387721248047129&version=v2.0";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div class="fb-like" data-href="https://www.facebook.com/people/Acim-WowAcim/100008000028793" data-layout="standard" data-action="like" data-show-faces="false" data-
share="true"></div>
<br><br>
<!--- A LIST OF WEB URL LINKS --->
</body>
</html>
The list of web links show and work... but no JavaScript is being run, it would appear (because the LIKE and SHARE buttons are not showing).
...
So, my question is - isn't JavaScript supposed to now be running when the page loads into the WebView?
And, if so, why aren't a LIKE and SHARE button being displayed?
Doesn't setting
B4X:
WebViewURL.JavaScriptEnabled = True
allow embedded JavaScript in <script> (and other places Javascript should run) to run?