Failed to connect to 2a03: 2880: 10: 1f03: face: b00c: 0: 26: Network unavailable from the PHP PHP SDK

I am using the Facebook Current PHP SDK. My application is working fine. BUt from today any return call api Failed to connect to 2a03: 2880: 10: 1f03: face: b00c: 0: 26: Network unavailable.

Here is my code

try { $fbme = $facebook->api('/me'); } catch (Exception $e) { echo $e->getMessage(); } 

Does anyone have a problem? How can i fix this?

+8
facebook-graph-api facebook-php-sdk
source share
2 answers

Your network or firewall may be configured incorrectly; disable your IPV6 interface if you do not have an IPV6 connection

+6
source share

There is another solution to this problem, found at http://codecorner.galanter.net/2011/06/03/solution-for-wordpress-curl-ipv6-error-network-is-unreachable/

You can simply force IPV4 to be enabled by setting the following curl option:

 curl_setopt( $handle, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4); 
+9
source share

All Articles