Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
377 views
in Q2A Core by
edited by
I want to add the following fb code after the <body> mark. I tried it but I don´t get it to work.

<div id="fb-root"></div>
<script>
  window.fbAsyncInit = function() {
    FB.init({
      appId  : 'YOUR APP ID',
      status : true, // check login status
      cookie : true, // enable cookies to allow the server to access the session
      xfbml  : true  // parse XFBML
    });
  };

  (function() {
    var e = document.createElement('script');
    e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
    e.async = true;
    document.getElementById('fb-root').appendChild(e);
  }());
</script>

Someone knows how to do that?

Best regards monk333

1 Answer

–1 vote
by
Found it, one can add it to the field for html in Admin > Layout.
...