Title: [Plugin: Facebook] Plugin using a different PHP SDK?
Last modified: August 20, 2016

---

# [Plugin: Facebook] Plugin using a different PHP SDK?

 *  Resolved [cpilko](https://wordpress.org/support/users/cpilko/)
 * (@cpilko)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-plugin-using-a-different-php-sdk/)
 * I’m using the PHP SDK to pull dynamic content via the Graph API into a widget
   on my site via a custom plugin.
 * After installing the Facebook plugin, I get an error `Cannot redeclare class 
   Facebook...` if I try to include a copy of the standard PHP SDK. I commented 
   out my `include` and now rely on the Facebook class loaded by the plugin.
 * Now, when I try to make an api call (fql), I get the error: `Access to undeclared
   static property: BaseFacebook::$CURL_OPTS in my_server/wp-content/plugins/facebook/
   includes/facebook-php-sdk/base_facebook.php on line 880`.
 * [http://wordpress.org/extend/plugins/facebook/](http://wordpress.org/extend/plugins/facebook/)

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

 *  Plugin Contributor [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-plugin-using-a-different-php-sdk/#post-2809292)
 * Yes, the plugin has a modified version of this class.
 * Try using the class Facebook_WP instead, which extends the Facebook class to 
   use the WordPress WP_HTTP API.
 *  Thread Starter [cpilko](https://wordpress.org/support/users/cpilko/)
 * (@cpilko)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-plugin-using-a-different-php-sdk/#post-2809309)
 * Thanks Otto. That works.

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

The topic ‘[Plugin: Facebook] Plugin using a different PHP SDK?’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [cpilko](https://wordpress.org/support/users/cpilko/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-plugin-using-a-different-php-sdk/#post-2809309)
 * Status: resolved