Title: Plugin conflicts with Facebook API
Last modified: August 30, 2016

---

# Plugin conflicts with Facebook API

 *  [encoder](https://wordpress.org/support/users/encoder/)
 * (@encoder)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-facebook-api/)
 * Hello,
    I am using Facebook comments in my website which requires [Facebook JS SDK](https://developers.facebook.com/docs/javascript/quickstart/v2.3).
   I’ve noticed that the plugin conflicts with it: the floating share buttons do
   not load what the API is enabled. When I deactivate the JS SDK, the floating 
   buttons start appearing but the comments section disappears with other Facebook
   social plugin, i.e. “Page Plugin (New Like Box)”
 * I’ve also tried to replace the JS SDK module with this line `<script src="http://
   connect.facebook.net/it_IT/all.js#appId=15825514086xxxxx&xfbml=1"></script>` 
   but the problem remains the same.
 * [https://wordpress.org/plugins/cresta-social-share-counter/](https://wordpress.org/plugins/cresta-social-share-counter/)

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

 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-facebook-api/#post-6270339)
 * Hi Encoder,
    are you using a plugin to integrate Facebook comments on your site?
 * I just tried it with this: [https://wordpress.org/plugins/facebook-comments-plugin/](https://wordpress.org/plugins/facebook-comments-plugin/)
   and everything seems to go well
 * Best,
    CrestaProject
 *  Thread Starter [encoder](https://wordpress.org/support/users/encoder/)
 * (@encoder)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-facebook-api/#post-6270347)
 * Hi again,
    No, I am not using a plugin for the Facebook comments. This is the
   script I’m using to initialize the SDK:
 *     ```
       <script>
       	  window.fbAsyncInit = function() {
       		FB.init({
       		  appId      : '1582551408xxxxxx',
       		  xfbml      : true,
       		  version    : 'v2.3'
       		});
       	  };
   
       	  (function(d, s, id){
       		 var js, fjs = d.getElementsByTagName(s)[0];
       		 if (d.getElementById(id)) {return;}
       		 js = d.createElement(s); js.id = id;
       		 js.src = "//connect.facebook.net/it_IT/all.js";
       		 fjs.parentNode.insertBefore(js, fjs);
       	   }(document, 'script', 'facebook-jssdk'));
       </script>
       ```
   
 *  Plugin Author [CrestaProject](https://wordpress.org/support/users/crestaproject/)
 * (@crestaproject)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-facebook-api/#post-6270358)
 * Hi Encoder,
    can you link me your website? If you prefer to tell me in private,
   you can use the contact form on this page: [http://crestaproject.com/contact/](http://crestaproject.com/contact/)
 * Best,
    CrestaProject
 *  Thread Starter [encoder](https://wordpress.org/support/users/encoder/)
 * (@encoder)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-facebook-api/#post-6270550)
 * Sorry for the delay 🙁
    I tested the website and I discovered that this error
   was caused by the cache plugin I was using. I had to deactivate that plugin and
   add the caching rules directly to the .htaccess file.

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

The topic ‘Plugin conflicts with Facebook API’ is closed to new replies.

 * ![](https://ps.w.org/cresta-social-share-counter/assets/icon-256x256.png?rev=
   2467359)
 * [Cresta Social Share Counter](https://wordpress.org/plugins/cresta-social-share-counter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cresta-social-share-counter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cresta-social-share-counter/)
 * [Active Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cresta-social-share-counter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cresta-social-share-counter/reviews/)

## Tags

 * [Comments](https://wordpress.org/support/topic-tag/comments/)
 * [conflict](https://wordpress.org/support/topic-tag/conflict/)
 * [js](https://wordpress.org/support/topic-tag/js/)
 * [sdk](https://wordpress.org/support/topic-tag/sdk/)

 * 4 replies
 * 2 participants
 * Last reply from: [encoder](https://wordpress.org/support/users/encoder/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/plugin-conflicts-with-facebook-api/#post-6270550)
 * Status: not resolved