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

How to include a standard Facebook like button?

$
0
0

Hi guys,

I asked the question before, but had not feedback received about how to implement the Javascrip SDK and XFBML parsing of Facenook...I really need your help.

I want to show a standard like button of Facebook as here

So I do this as described:

1 - Put this into the index.html in theme folder (make use of a sas theme)

<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";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>

<!-- Your like button code -->
<div class="fb-like" 
    data-href="https://www.facebook.com/rapido" 
    data-layout="standard" 
    data-action="like" 
    data-show-faces="true">
</div>

2 - Then I add on the page a container and give it the class "fb-like".

3 - Rezip the theme folder and run it...(now I expect that the like button is visible) but the result is= No facebook like button is visible.

4 - Should I change someowher else in css/custom some css files to define the classes or so?

5 - Or should I parse like here is written and how do I this?

EDIT: Mx version is 6.4.1.


Viewing all articles
Browse latest Browse all 82391

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>