1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

spontaneous facebook php app failure

Discussion in 'FaceBook' started by peteisneat09, Mar 7, 2012.

  1. peteisneat09

    peteisneat09 Regular Member

    Joined:
    Nov 29, 2010
    Messages:
    282
    Likes Received:
    51
    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.
     
  2. honzarox

    honzarox Junior Member

    Joined:
    Feb 28, 2008
    Messages:
    131
    Likes Received:
    52
    I cant connect to FB myself right now, could this b why?
     
  3. yeasin33

    yeasin33 Junior Member

    Joined:
    Mar 1, 2012
    Messages:
    114
    Likes Received:
    16
    Occupation:
    Student, Web Developer
    Location:
    1600, Amphitheatre Parkway Mountain View, CA 94043
    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.
     
  4. peteisneat09

    peteisneat09 Regular Member

    Joined:
    Nov 29, 2010
    Messages:
    282
    Likes Received:
    51
    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
     
  5. yeasin33

    yeasin33 Junior Member

    Joined:
    Mar 1, 2012
    Messages:
    114
    Likes Received:
    16
    Occupation:
    Student, Web Developer
    Location:
    1600, Amphitheatre Parkway Mountain View, CA 94043
    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;