spontaneous facebook php app failure

peteisneat09

Regular Member
Joined
Nov 29, 2010
Messages
289
Reaction score
50
My app was working perfectly all day and then late at night I get this error

php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution

and errors
Fatal error: Uncaught CurlException: 6: Couldn't resolve host 'graph.facebook.com' thrown in /home/xxxxxxxx/public_html/xxxxxxxx/app/src/base_facebook.php on line 805


traffic goes to 0 since no one can install it anymore.
 
I cant connect to FB myself right now, could this b why?
 
Temporarily i suggest you to disable error reporting.
Add This error_reporting(0);
Your script seems to be detecting user's location. And That caused the problem. If the problem is not solved yet, Paste some more code.
 
its either from facebook banning my host or the host banning facebook



either way, this shit isnt gonna fix itself so it's off to a new host
 
try writing the following code in the try block where you have called the this
($me = $facebook->api('/me');) api.
Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYPEER] = false; Facebook::$CURL_OPTS[CURLOPT_SSL_VERIFYHOST] = 2;
 
Back
Top