1

I get the following error on my website in Facebook PHP SDK: "Uncaught CurlException: 28: SSL connection timeout"

The code worked fine until today, and there wasn't any change on the server.

I tried to add the cURL option "CURLOPT_SSLVERSION = 3" to base_facebook.php, but it didn't work.

I downloaded the latest Facebook PHP SDK, and tried to open the example.php, but there was the same error.

I tried to make a DNS flush, and I modified the DNS settings to Google's public DNS addresses, but it didn't help.

Open SSL section in phpinfo():

  • OpenSSL support enabled
  • OpenSSL Library Version OpenSSL 0.9.8o 01 Jun 2010
  • OpenSSL Header Version OpenSSL 0.9.8o 01 Jun 2010

cURL section in phpinfo:

  • cURL support enabled
  • cURL Information 7.21.0
  • SSL Version OpenSSL/0.9.8o

Any ideas?

Thanks.

4

1 回答 1

0

这是解决方案:

我阻止了我的 debian 服务器上的所有 IPv6 连接:

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

现在我可以使用 API 再次连接到 Facebook 服务器。

我不知道为什么我必须禁用 IPv6 连接,但它现在可以工作了。

于 2013-10-20T17:50:10.450 回答