Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I know this has been a problem before, but I've tried everything, and the Fb library will not connect. I'm using the latest DEV's for fbconnect, Libraries API, and the current download from the FB SDK. The SDK is installed where it says to go, and I even made it CHMOD 777 just to be sure. I thought I've gone through all the posts about this, but nothing is left I can find to try and I still get "Facebook PHP library not found". Any idea what I could be missing?
Comment | File | Size | Author |
---|---|---|---|
#7 | fbconnect-libraries-connect-1603206-7.patch | 500 bytes | InternetDevels |
Comments
Comment #1
one_orange_cat CreditAttribution: one_orange_cat commentedDon't know if you've tried this, but I only got mine working when I renamed the downloaded SDK folder to 'facebook-php-sdk' and put it in sites/all/libraries.
<edit> Probably useful to note that I have Libraries API module installed! </edit>
Comment #2
wxman CreditAttribution: wxman commentedI'm afraid I already tried that. It's in sites/all/libraries/facebook-php-sdk/src, and the libraries module is installed. Thanks for trying.
Comment #3
one_orange_cat CreditAttribution: one_orange_cat commentedAgain I'm guessing you've tried this, but as you're using latest dev version of libraries which has the new cache_libraries table (vs recommended) have you tried emptying that table/clearing caches?
Comment #4
wxman CreditAttribution: wxman commentedI'm using Libraries API 7.x-2.0-alpha2+2-dev. I use the admin toolbar, and I use the flush all caches every time. Still no luck.
Comment #5
wxman CreditAttribution: wxman commentedSo far I've tried different versions of the SDK, all three versions of the libraries module (currently 7.x-2.0-alpha2), cleared the cache_libraries table, but still nothing. others have this working, so I know it does. What else could I be doing wrong? Could it have something to do bring a multi site?
Comment #6
wxman CreditAttribution: wxman commentedI dug around the code, and made a test edit of fbconnect.module function _facebook_client_load_include(). I started by printing the variable $sdk_path. Every time it came out blank, so I commented out the else:
The library loads perfectly if I leave the else statement commented out.
Comment #7
InternetDevels CreditAttribution: InternetDevels commentedthis patch fixed problem for me
Comment #8
wxman CreditAttribution: wxman commentedThanks. The patch works here too.
Comment #9
Exploratus CreditAttribution: Exploratus commentedHad the same issue, this patch fixed it right up. Thanks! Is this commited?
Comment #10
astutonetDespite its importance, this module seems rather abandoned and maybe the patch in #7 has not yet been implemented because the category and subject of this post was a support request, not a bug information.
I also had the problems presented in this issue and after trying various solutions, the patch provided solve my problems.
I was leaving the module when I found the solution presented in this post.
Thank you. I hope this patch will be commited soon.
Comment #11
jcisio CreditAttribution: jcisio commentedWhen a patch is "needs work", it has less chance to be reviewed. I don't know why it was NW, to move to NR.
Comment #12
Chris Charlton3-4 years later? Bump.
Comment #13
Chris CharltonComment #14
Chris CharltonPatch #7 is good.
Comment #15
Chris Charlton(friendly) Bump. :)