Hi,
in Vaadin 8 I was able to executeJavaScript. What is the best way in v10 to create a FaceBook like Button or other Plugins.
These two Steps are neccessary:
Step 1
<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/de_DE/sdk.js#xfbml=1&version=v3.1&appId=123456789&autoLogAppEvents=1';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
Step 2
<div class="fb-like" data-href="https://www.facebook.com/myFBPage" data-layout="box_count" data-action="like" data-size="small" data-show-faces="true" data-share="false"></div>
Thanks