While we've provided a WordPress plugin, it's almost always easier to simply add the code snippet to your
functions.php file (assuming you're using one).
The WordPress Function
Copy and paste the WordPress function into your theme's
functions.php file or, if you sensibly have one installed, your custom functions plugin.
While we can pass arguments to a function when using the add_action function (through do_action ), it's not appropriate with wp_head (no arguments are called by
wp_head()). While we can use
apply_filters to modify values, it's just easier to just define the values - which is what we've done (for
Used outside of WordPress, the
beliefmedia_fbsdk_head() function should be used just after the opening
- It's quite possible your theme or another plugin is already rendering the Facebook SDK code. To check, view your website source code and look for "
connect.facebook.net". If the code exists, it's highly likely the code already exists.
- If you download the WP plugin, we'll notify you of updates via your dashboard.
The WordPress version intended for your
functions.php file is labeled as shortcode.