title: $me = $facebook->api('/me') does not return any value
body: <p>I am developing a facebook iframe application with the New Graph API php sdk. I am using the basic code to just display my name. But it does not return any value. Some one please help me with this.</p>
  
  <pre><code>&lt;?php  
  
    include_once 'facebook.php';  
    include_once 'config.php';  
  
    $facebook = new Facebook(array('appId'  =&gt; FACEBOOK_APP_ID,  
                                   'secret' =&gt; FACEBOOK_SECRET_KEY,  
                                   'cookie' =&gt; true,));  
  
    $session = $facebook-&gt;getSession();
    $me = null;
  
    if ($session) {
      try {  
          $uid = $facebook-&gt;getUser();
          echo "Hello " . $uid . "&lt;br /&gt;";   // This is displayed with my User Id
  
          $me = $facebook-&gt;api('/me');
         echo "Hello " . $me['name'] . "&lt;br /&gt;";  // This is not displayed.
  
      } catch (FacebookApiException $e) {
          error_log($e);
      }
    }
  
  if ($me) {
      $logoutUrl = $facebook-&gt;getLogoutUrl();
  } else {
      $loginUrl = $facebook-&gt;getLoginUrl();
  }
  </code></pre>
  
  <p>Why is my name not displayed? </p>
  
  <p><strong>Edit 1</strong></p>
  
  <p>If I use the example code that comes with the New Graph API facebook sdk zip folder, I get the following error:</p>
  
  <pre><code> Fatal error: Uncaught CurlException: 6: 
   Could not resolve host: graph.facebook.com; 
   No data record of requested type thrown in
   C:\xampplite\htdocs\newtest\facebook.php on line 513
  </code></pre>
  
  <p>where line no 513 is:</p>
  
  <pre><code> $e = new FacebookApiException(array(
      'error_code' =&gt; curl_errno($ch),
      'error'      =&gt; array(
        'message' =&gt; curl_error($ch),
        'type'    =&gt; 'CurlException',
      ),
    ));
  </code></pre>
  
  <p>Please explain me what is wrong. I searched for the error explanation in google,but i couldn't get much information. What is the error I have made? </p>