Title: [Plugin: WPBook] Multiple facebook library include issue from other plugin
Last modified: August 20, 2016

---

# [Plugin: WPBook] Multiple facebook library include issue from other plugin

 *  Resolved [Sabuj Kundu](https://wordpress.org/support/users/manchumahara/)
 * (@manchumahara)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/)
 * I am using wordpress plugin SEO Facebook comments and it uses the facebook application
   library and messed up with wpbook.
 * If another plugin adds/loads the facebook library then facebook application end
   shows error. To solve this wp-content/plugins/wpbook/includes/client/base_facebook.
   php
 * Change this file as [http://pastebin.com/WMXycGWa](http://pastebin.com/WMXycGWa)
 * Here what I did is checked if the classes not exists.
 * thank you.
 * [http://wordpress.org/extend/plugins/wpbook/](http://wordpress.org/extend/plugins/wpbook/)

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

 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/#post-2546359)
 * WPBook already does a check to see if the Facebook library already exists – is
   the problem that the SEO Facebook library includes a different version of the
   Facebook SDK?
 *  [rashadow](https://wordpress.org/support/users/rashadow/)
 * (@rashadow)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/#post-2546655)
 * Just to add: I was having problems with getting the ‘SEO Facebook Comments’ plugin
   to play nice with WPBook and WPBook Lite. While SEO FB Comments was active, I
   would receive a 500 internal error when trying to view the FB version of my blog
   with WPBook. With the Lite, I would get a 500 internal error on the settings 
   page, so I couldn’t even configure it.
 * I tried the changes to base_facebook.php that Sabuj kundu listed above and it
   looks to have solved my problem. The commenting system is working and I can get
   into the WPBook Lite settings. At this time, I have yet to post a new post or
   retry WPBook to see if all is well yet. But the fact that there are no 500 errors
   gives me hope. Site is [http://silenciobarnes.com](http://silenciobarnes.com)
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/#post-2546656)
 * SEO Facebook Comments also says that it finds Facebook comments on your blog 
   post and imports them – might duplicate WPBook Lite’s import function.
 * Looks to me like both WPBook and SEO Facebook Comments are including v3.1.1 of
   the Facebook API.
 * WPBook (and WPBook Lite) do check to see if the “Facebook” class exists before
   importing the Facebook client – maybe it should check for the “BaseFacebook” 
   class first?
 * I’m reluctant to take in changes to the Facebook API based on a full pastebin–
   maybe I need to do a diff of the two files just to see what’s changed?
 *  [rashadow](https://wordpress.org/support/users/rashadow/)
 * (@rashadow)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/#post-2546657)
 * It looks like he added lines but did not modify any existing lines
 * line 25: if(!class_exists(‘FacebookApiException’)):
 * lines 110-112: endif;
 * if(!class_exists(‘BaseFacebook’)):
 * line 1148: endif;
 * Compared the base_facebook.php contained in wpbooklite client folder with the
   copied pastebin using winmerge – [http://winmerge.org/](http://winmerge.org/)
 *  Plugin Author [johneckman](https://wordpress.org/support/users/johneckman/)
 * (@johneckman)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/#post-2546661)
 * Thanks [@rashadow](https://wordpress.org/support/users/rashadow/) for doing the
   diff I hadn’t found time to do. 😉
 * I’ll get these changes in the next release.

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

The topic ‘[Plugin: WPBook] Multiple facebook library include issue from other plugin’
is closed to new replies.

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

 * 5 replies
 * 3 participants
 * Last reply from: [johneckman](https://wordpress.org/support/users/johneckman/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wpbook-multiple-facebook-library-include-issue-from-other-plugin/#post-2546661)
 * Status: resolved