Hi, i just tryed out this great module, but seems like it has some conflict with fb_* modules, for the facebook library they use.
They use the facebook php sdk library, that contains a class named Facebook as well as postiteverywhere; so enabling both modules will raise an Fatal error "Cannot redeclare Facebook class".
I solved in this way:
1. open the facebook.php file into sites/all/modules/postiteverywhere/facebook-client/facebook.php
2. Rename the Facebook class (in my case, i renamed to Facebook_POSTITEVERYWHERE)
3. open postiteverywhere.module file
4. Find line ~1099, edit
$fb = new Facebook($conf['api_key'], $conf['api_secret']);
//with:
$fb = new Facebook_POSTITEVERYWHERE($conf['api_key'], $conf['api_secret']);
5. open sites/all/modules/postiteverywhere/facebook-client/facebookapi_php5_restlib.php
6. Replace all occourrences of Facebook:: with Facebook_POSTITEVERYWHERE::
now they both should works.
I tryed to comment the line where this module include the facebook library, in order to use the fb_* version, but that miss some some functions (the 2 libraries seem to be different).
Comments
Comment #1
qasimzee commentedYou tried without including the facebook library files?
Comment #2
strae commentedYes, but the postiteverywhere faceook library has some functions that the fb_* library miss, tomorrow i try to do the invert, using the postiteverywhere facebook library instead of the fb_* one.
I can try to merge the two libraries, but then will be a nightmare with updates