Welcome! To use this support forum, please Login or Join Today!


Where to paste Facebook JavaScript SDK?


Total Posts: 8

Joined 2013-05-31



I would like to use this Facebook plugin called Facepile: https://developers.facebook.com/docs/plugins/facepile/

I would like it to appear in the right sidebar on pages at http://www.fraternitymanagementgroup.com/

I have pasted the Facepile code into a text widget and dragged it where I want it under the social media links, but it does not show up because the SDK wasn’t loaded when the page loaded. I have tried pasting it into a couple places, like the PHPO files for single, home, functions, etc. to no avail.

UPDATE! - It seems to work if I just put all of the code (SDK and then script) into the widget, but is that the best way to do it?


Total Posts: 3667

Joined 2011-04-27



I haven’t’ used Facepile myself, but you might try editing /wp-content/onyx/lib/functions/header_functions.php around line# 19-31 and include the script file separately.