Today I was trying to make application on Facebook using PHPSDK and I saw ocassionaly displayed exception from library saying
CurlException: 28: connect() timed out!
So, to check if it's my code bug I downloaded latest library PHPSDK
from github
. Then I was trying to run examples/example.php file few times, after that I look into error log and this error was also there (not always, looks like it's kind of random thing).
I was trying to find solution on developer forum without any success, as I notice this kind of problem occur in the past, and none knows why.
Any solutions?
Thanks
Same here, totally random but on large access site the error log file come quickly full :/
Bug Open here : http://developers.facebook.com/bugs/182705755149358
Production server Use the same PHP code as shown in the given exemple : https:// developers.facebook.com/blog/post/534/
2 connections on 6 pass. else :
***`print_r($e->getResult());`***
Give :
Array
(
[error_code] => 28
[error] => Array
(
[message] => connect() timed out!
[type] => CurlException
)
)
Else here are the Options in the Facebook.php
/**
* Default options for curl.
*/
public static $CURL_OPTS = array(
CURLOPT_CONNECTTIMEOUT => 10,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_USERAGENT => 'facebook-php-3.1',
);
I've Try this :
Still actualizing the Platform Live-Status page of Facebook ... Api response time raising ... https://developers.facebook.com/live_status
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With