title: How to get Facebook user detail from Access Token using Codeigniter?
body: <p>I'm really struggling to understand what's happening here. I can get a Users details fine  in the OpenGraph tester or just hitting the URL <a href="https://graph.facebook.com/me?access_token=VALID_TOKEN" rel="nofollow">https://graph.facebook.com/me?access_token=VALID_TOKEN</a> or using file_get_contents, but when trying the Codeigniter Facebook Library I get error <em>"An active access token must be used..."</em> and if I just try a CURL GET I get no output. I know the access_token is valid so why aren't they working? The overall objective is to get an access_token from iOS App and use this to do a Like via the web server using og.likes.</p>
  
  <p><strong>My test function:</strong></p>
  
  <pre><code>function me_test(){
      $access_token = "VALID_TOKEN";
      $url = 'https://graph.facebook.com/me?access_token=';
      $url_full = $url.$access_token;
  
      $result = file_get_contents($url_full);
      echo $result;
  
      // Try Codeigniter Facebook Library
      try {
          $user = $this-&gt;facebook-&gt;api('/me?access_token='.$access_token);
      } catch (Exception $e) {
          print_r($e);
      }
  
      // Codeigniter CURL Library
      $this-&gt;load-&gt;library('curl');  
      echo $this-&gt;curl-&gt;simple_get($url_full);
      $info =  $this-&gt;curl-&gt;info;
      print_r($info);
  
  }
  </code></pre>