Hello,
I really like the module and love using it.
But I have issues since I updated the module to latest stable release.
Here is the error:

warning: Missing argument 2 for Facebook::__construct(), called in /home/xxxx/public_html/sites/all/modules/fb/fb.module on line 228 and defined in /home/XXXX/public_html/sites/all/modules/fb/facebook-platform/php/facebook.php on line 63.

I appreciate your reply.

Regards.

Comments

Dave Cohen’s picture

Title: After updating latest stable release, I get whilte page » Missing argument 2 for Facebook::__construct()

When you upgrade from 2.x to 3.x, you have to get the latest version of facebook's client libraries. Read the README.txt.

beautifulmind’s picture

Hello,
Thanks for the information. I really appreciate it.

Regards.

beautifulmind’s picture

Hello
I read the README.txt and installed the module accordingly, but it fails each time.
Here is the error I get:
PHP Fatal error: Access to undeclared static property: Facebook::$CURL_OPTS in /home/xxxxxx/public_html/sites/all/modules/fb/fb.module on line 234

I've already checked that my hosting provider supports curl & openSSL

Regards.

Dave Cohen’s picture

I think you have an old version of facebook's libraries. The README.txt describes where to get the newer one.

beautifulmind’s picture

Well, I have downloaded the libraries from the link provided in the README.txt. is the link point to old libraries? Again, I followed all the steps mentioned in the README.txt

Thanks.

beautifulmind’s picture

Also, How can I prove that I have followed all the steps mentioned in the README.txt?

Thanks for your co-operation so far.

beautifulmind’s picture

Hello,
Can I have any update please? is there anything you can do with this? I've tried with a clean install of 6.x-3.0 beta1, but no help. Are you sure the library you are talking about is the one which should be used with the module?

Thanks.

Dave Cohen’s picture

If you have a file called facebook-platform/php/facebook.php, that looks like the old libraries that go with the 2.x branch.

The libraries that go with 3.x will be a directory called facebook-php-sdk or something close to that.

beautifulmind’s picture

Yeah, that's what I did. I downloaded a zip file from an external website (not facebook) and copied it to respective directory. When updating, I removed all the files of previous version. Did I do in correct way?

[edit] I copied the content of extrated zip file

beautifulmind’s picture

Version: 6.x-3.0-beta1 » 6.x-2.0-rc3

I have installed the RC3 and followed all the steps, the issue is the same.

Regards.