Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82387

Problem adding facebook like & share button

$
0
0

Hi guys,

was trying to add a like & share button into our app but got a lil stuck. following the 3 steps provided by Fb did not help,

Step 2: Include the JavaScript SDK on your page once, ideally right after the opening <body> tag. --> Yes I did

<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/nl_NL/sdk.js#xfbml=1&version=v2.6";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

Stap 3: plaats deze code waar je de plug-in op je pagina wilt laten verschijnen. --> Yes I did with using a HTML snippet widget, with no result

<div class="fb-like" 
    data-href="http://www.your-domain.com/your-page.html" 
    data-layout="standard" 
    data-action="like" 
    data-show-faces="true">
</div>

is it wrong to include the javascript sdk in main - theme- index file?


Viewing all articles
Browse latest Browse all 82387

Trending Articles