• 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?


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?


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:


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...


XenForo developer
Staff member
If FB logins are enabled or a video is embedded from Facebook, we include the SDK automatically.