Cannot Install Facebook SDK + Facebook Messenger Plugin

Not sure what’s going on but I’m unable to get any of this working.

I’ve tried adding the Facebook SDK to Global JS, Page JS, and functions.php with no success.

Details below.

Hi There,

It is best to add the code on your child theme functions.php file.
See this guide: https://theme.co/apex/forum/t/customizations-actions-and-filters-in-x/208
The error might be a syntax error.

function my_fb_code() {
  <script>
    //  FB CODE here
  </script>
}

add_action( 'wp_head', 'my_fb_code', 10 );

Depending on what was suggested, you might update wp_head part from the code with correct action filter.
Please make sure that you copied to code correctly because it might result to syntax error if incomplete.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.