title: ErrorCurlException: 7: Failed to connect to 255.255.255.255: Network is unreachable
body: <p>I am getting this error in my PHP code:</p>
  
  <pre class="lang-none prettyprint-override"><code>ErrorCurlException: 7: Failed to connect to 255.255.255.255: Network is unreachable
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>require_once 'src/facebook.php'; //include the facebook php sdk
  $facebook = new Facebook(array(
      'appId'  =&gt; '*************',    //app id
      'secret' =&gt; '**********************', // app secret
  ));
  
  $user = $facebook-&gt;getUser();
  
  if ($user) { // check if current user is authenticated
      try {
          // Proceed knowing you have a logged in user who's authenticated.
  
          $user_profile = $facebook-&gt;api('/me');  //get current user's profile information using open graph
          $email = $user_profile['email'];
          echo"&lt;script&gt;alert(\"$name\");&lt;/script&gt;";
      } catch(Exception $e)    {
          $name="Error".$e;
      }
  }
  echo"&lt;script&gt;alert(\"$name\");&lt;/script&gt;";
  ?&gt;
  </code></pre>
  
  <p>The same code is working on a different page. I am just a beginner and don't know much about FB API.</p>