SSL Connection timeout in facebook fql

不羁岁月 提交于 2019-12-05 06:18:26
Waqas Ali Khan Puar
  1. open base_facebook.php
  2. find CURLOPT_CONNECTTIMEOUT => 10
  3. change it to CURLOPT_CONNECTTIMEOUT => 30

That's it!

For me, the solution was adding

$opts[CURLOPT_SSLVERSION] = 3;

before

curl_setopt_array($ch, $opts);

in base_facebook.php

Thanks to: https://developers.facebook.com/bugs/213367445404472/?browse=search_4eeccca164bbe6357503363

sharon saadon

I solved it by adding:

CURLOPT_SSLVERSION     => 3,

after the line:

CURLOPT_USERAGENT      => 'facebook-php-3.1',

at - base_facebook.php

(it will make curl to use SSLv3)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!