Title: [Plugin: Facebook] Make plugin compatible with other plugins that use FB API
Last modified: August 20, 2016

---

# [Plugin: Facebook] Make plugin compatible with other plugins that use FB API

 *  [BramVanroy](https://wordpress.org/support/users/bramvanroy/)
 * (@bramvanroy)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/)
 * I am experiencing difficulties with this plug-in when I use other plug-ins that
   also use FB’s API.
 * As you can see [here](http://wordpress.org/support/topic/plugin-facebook-photo-fetcher-conflicts-with-official-facebook-plugin-from-facebook?replies=3#post-2931803)
   the author of that plug-in states that it’s the ‘fault’ of the official plug-
   in. So, can this compatibility issue get fixed?
 * [http://wordpress.org/extend/plugins/facebook/](http://wordpress.org/extend/plugins/facebook/)

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

 *  [cpilko](https://wordpress.org/support/users/cpilko/)
 * (@cpilko)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2848854)
 * +1 for this. Rewriting all plugins to use the `Facebook_WP` class instead of 
   the plain `Facebook` class in the PHP SDK is a royal PITA.
 *  [5ngua](https://wordpress.org/support/users/5ngua/)
 * (@5ngua)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2848989)
 * can we create 2 different APIs for 2 Facebook plugins?
 *  Plugin Contributor [Matt Kelly (Facebook)](https://wordpress.org/support/users/mattwkelly/)
 * (@mattwkelly)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2849003)
 * Followed up in [http://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api?replies=3](http://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api?replies=3)
 * Also, one of the reasons we’re using Facebook_WP is so we avoid namespace collisions.
 *  [Fumiki Takahashi](https://wordpress.org/support/users/takahashi_fumiki/)
 * (@takahashi_fumiki)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2849012)
 * Hi, Matt.
 * I’m developper of a plugin which use Facebook’s php-sdk 3.1.1(current latest)
   and found that Facebook plugin breaks my plugin.
 * [http://wordpress.org/extend/plugins/gianism/](http://wordpress.org/extend/plugins/gianism/)
 * I got an error which tells `Fatal error: Access to undeclared static property:
   BaseFacebook::$CURL_OPTS in /path/to/facebook/includes/facebook-php-sdk/base_facebook.
   php on line 880` on `$facebook->makeRequest()`.
 * As it told, base_facebook.php doesn’t have static member `$CURL_OPTS`.
 * But I see Facebook-php-sdk on github, base_facebook.php has that member.
 * [https://github.com/facebook/facebook-php-sdk/blob/master/src/base_facebook.php](https://github.com/facebook/facebook-php-sdk/blob/master/src/base_facebook.php)
 * It seems that Facebook plugin uses customized base_facebook.php. Please tell 
   me what to do for coexistence.
 *  [rick4him](https://wordpress.org/support/users/rick4him/)
 * (@rick4him)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2849013)
 * So if I’m using a plug in like digg digg (for floating sharers) or jetpack (for
   workdpress stats) even though I’m not using their facebook button, would I have
   issues?
 * It looks like the plugin is duplicating code. What can I do? I can’t get rid 
   of the other ones.
 *  Thread Starter [BramVanroy](https://wordpress.org/support/users/bramvanroy/)
 * (@bramvanroy)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2849014)
 * Matt, what exactly do you mean by “Followed up in”?
 *  [tnguyen14](https://wordpress.org/support/users/tnguyen14/)
 * (@tnguyen14)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2849027)
 * I’m wondering the same question. Is there a way to make Facebook play nice with
   other plug-ins? Would other FB plugin developers update their plug-in to make
   them compatible with the official plugin?

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

The topic ‘[Plugin: Facebook] Make plugin compatible with other plugins that use
FB API’ 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

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

 * 7 replies
 * 7 participants
 * Last reply from: [tnguyen14](https://wordpress.org/support/users/tnguyen14/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-make-plugin-compatible-with-other-plugins-that-use-fb-api/#post-2849027)
 * Status: not resolved