Facebook SDK error: uncaught interrupt: 28: connect () timeout! thrown in php

I just follow the same code from the Facebook SDK example .

If the FB application points to my local desktop, it will receive personal information from the uid user and the user (ex email) if the APP receives permission from the OAUTH request.

But when I upload the files to the server, the execution $facebook->api('/me');

Fatal error: Unused CurlException: 28: connect () timeout! thrown /xxx/src/facebook.php on line 622

I still can’t understand why. Does it come from CURL or SSL settings? My server supports SSL and CURL. My local is only CURL, but no SSL support.

I think my SDK for Facebook is an old version, only facebook.phpwithout base_facebook.php. I am trying to use the new version, but I cannot run any program due to a crt error.

+5
source share
1 answer

You are getting this error because your host cannot access the Facebook API. It may have an old version of Open SSL, can you check the current version on the server?

Try connecting with SSL from local configuration, and it may also be easier to debug on your local machine.

Also see the crt error information (CRC?) And try to fix it first ( don't shave too much yak, though ).

+2
source

All Articles