1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.5 Where is the best place to put the facebook SDK script?

Discussion in 'XenForo Questions and Support' started by tribedude, Jul 27, 2016.

  1. tribedude

    tribedude Active Member

    They say to put it after the <body> section. Is there a place in the Admin CP that I can insert this code? Or do I put it in a template? If in a template, which one do I use so it is available on every page?
  2. Brogan

    Brogan XenForo Moderator Staff Member

  3. tribedude

    tribedude Active Member

    I guess the page_container_js_body would be the best place to put that facebook SDK... But there already seems to be a line there about it in the template... SHould my facebook SDK go before this? After this? Under " // Facebook Javascrpt SDK "?

    Last edited: Jul 27, 2016
  4. tribedude

    tribedude Active Member

    Or, do I even need to put the facebook SDK script on each page in order for the board to accept fb logins and to draw an image from the board when a user shares a post to facebook...
  5. Mike

    Mike XenForo Developer Staff Member

    If FB logins are enabled or a video is embedded from Facebook, we include the SDK automatically.
  6. tribedude

    tribedude Active Member


Share This Page