As soon as we installed the dev version of the module we got the following error on our test site: Fatal error: Access to undeclared static property: Facebook::$CURL_OPTS

Any ideas?

Comments

Dave Cohen’s picture

Title: Getting error when module is installed » Access to undeclared static property: Facebook::$CURL_OPTS

Facebook's libraries require the PHP curl extension.

http://php.net/manual/en/book.curl.php

BMorse’s picture

curl is running on the server. From phpinfo: libcurl/7.19.7 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5

Dave Cohen’s picture

I've never seen this error. Are there other errors? Have you read the README.txt?

I suspect its not finding facebook.php, the libraries you have to download from facebook. If that's the case you should see other errors as well.

BMorse’s picture

Perhaps so. Reinstalled everything and the error (which wan't a drupal error, it appeared before the site loaded) is gone. But now there is not Share on Facebook checkbox on node creation. So, we're still doing something wrong.

msti’s picture

Did you download the new facebook libraries fom http://github.com/facebook/php-sdk/downloads ?