Title: Facebook Javascript Code
Last modified: August 20, 2016

---

# Facebook Javascript Code

 *  Resolved [inprojectcloud](https://wordpress.org/support/users/inprojectcloud/)
 * (@inprojectcloud)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/)
 * Hi,
 * I have installed the plugin and filled up the App ID, etc. However, I am not 
   using any of the facebook features as yet. For example, I am using a floating
   bar which has a facebook like button.
 * Do I have to manually input the facebook javascript code in my header again? 
   Or does the plugin provide insights for all actions involving the facebook like
   button even though the button is not generated by the plugin?
 * Essentially, does the plugin generate a universal javacript code with my app 
   id if it is activated and one is not using any of its features?
 * [http://wordpress.org/extend/plugins/facebook/](http://wordpress.org/extend/plugins/facebook/)

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Plugin Contributor [Matt Kelly (Facebook)](https://wordpress.org/support/users/mattwkelly/)
 * (@mattwkelly)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864565)
 * Yes. But why do you want to inject the code yourself? The plugin has most of 
   the core Facebook features that you probably need.
 *  Thread Starter [inprojectcloud](https://wordpress.org/support/users/inprojectcloud/)
 * (@inprojectcloud)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864566)
 * Hey!
 * Thanks for getting back to me! I don’t want to inject the code again. I just 
   want to know if the plugin automatically does that and applies it to say a manual
   send button that I install using code generated from the facebook website. I 
   hope I’m clear.
 * Basically, I use the diggdigg plugin for a floating bar. I’m just wondering if
   I have to inject the javascript in my header or does the facebook plugin automatically
   do that and apply it.
 *  Plugin Contributor [Matt Kelly (Facebook)](https://wordpress.org/support/users/mattwkelly/)
 * (@mattwkelly)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864567)
 * Ah yes, that should be fine.
 * The JS SDK is included, so if you include something like <fb:send>, it will generally
   work everywhere.
 *  [rick4him](https://wordpress.org/support/users/rick4him/)
 * (@rick4him)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864581)
 * @improjectcloud – I’m also using Digg Digg, and was curious if the JS sdk is 
   being duplicated. Do you know if it is? Did you figure out the best way to get
   the Facebook plugin and Digg Digg to work correctly without anything being duplicated?(
   Here’s my [site](http://noahsdad.com/lessons-son-leukemia/) if you’d like to 
   take a look.)
 * Thanks!
 *  Thread Starter [inprojectcloud](https://wordpress.org/support/users/inprojectcloud/)
 * (@inprojectcloud)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864582)
 * I don’t think it duplicates the java sdk. Unfortunately, I don’t have enough 
   traffic to check if DiggDigg’s FB button is including my FB application ID for
   insights. Maybe you could check that out under facebook insights since you have
   massive traffic from what I can see!
 * FYI: I read your post and I’m sure your post is helping a lot of people =)
 *  [rick4him](https://wordpress.org/support/users/rick4him/)
 * (@rick4him)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864583)
 * Thanks for the kind words about our [site](http://noahsdad.com/lessons-son-leukemia/).
   Is there any way you can look at the source code and see if you see anything 
   odd? When I run google speed test it seems to show duplicated Facebook code that’s
   slowing down my site. So I can’t tell where it’s coming from.
 *  Thread Starter [inprojectcloud](https://wordpress.org/support/users/inprojectcloud/)
 * (@inprojectcloud)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864584)
 * Hey!
 * Take a look here: [https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fnoahsdad.com%2Flessons-son-leukemia%2F](https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fnoahsdad.com%2Flessons-son-leukemia%2F)
 * I’m not an expert but if you have provided the fb code in your header file and
   also enabled the facebook plugin, it could generate multiple tags. I removed 
   the fb code when I installed the facebook plugin.
 *  [rick4him](https://wordpress.org/support/users/rick4him/)
 * (@rick4him)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864585)
 * Thanks, but i’m not sure what the info on that link means. I don’t understand
   the error it says I’m producing.
 * Also I haven’t put the fb code in my header at all. But I’m using both the facebook
   plug in, and the digg digg (and jetpack) so I’m concerned one of those may have
   duplicated the code.
 *  Thread Starter [inprojectcloud](https://wordpress.org/support/users/inprojectcloud/)
 * (@inprojectcloud)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864586)
 * The link allows you to understand how facebook sees your article. From what I
   can tell, your fb code is not being duplicated rather the error on your page 
   is
 * _The parser’s result for this metadata did not match the input metadata. Likely,
   this was caused by the data being ordered in an unexpected way, multiple values
   being given for a property only expecting a single value, or property values 
   for a given property being mismatched. Here are the input property =>content 
   pairs that were not seen in the parsed result: ‘og:locale:locale => en\_US, article:
   published\_time => 2012-06-18T23:17:59+00:00, article:modified\_time => 2012-
   06-19T23:00:56+00:00’_
 * You might want to investigate this part.
 * Yo
 *  [rick4him](https://wordpress.org/support/users/rick4him/)
 * (@rick4him)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864587)
 * Thanks! Do you know anything about that error?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Facebook Javascript Code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook_526fac.svg)
 * [Facebook](https://wordpress.org/plugins/facebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 10 replies
 * 3 participants
 * Last reply from: [rick4him](https://wordpress.org/support/users/rick4him/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/facebook-javascript-code/#post-2864587)
 * Status: resolved