title: I upgraded to FQL to Graph API - am I using it correctly?
body: <p>I used the FQL until a few days ago to retrieve Facebook data, but I noticed that it will be discontinued in about 1 year so I upgraded to Graph API. But am I using it correctly? Will this method work still next year? I am still using a </p>
  
  <p><code>facebook.php</code>, 
  <code>base_facebook.php</code> and 
  <code>fb_ca_chain_bundle.crt</code></p>
  
  <p>from 2011 but then again I only need these functions.</p>
  
  <p>Here's my code, thanks for any advice you can give me :)</p>
  
  <pre><code>        function get_content($URL){
                    $ch = curl_init();
                    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
                    curl_setopt($ch, CURLOPT_URL, $URL);
                    $data = curl_exec($ch);
                    curl_close($ch);
                    return $data;
          }
  
          $access_token =  $facebook-&gt;getAccessToken();
  
          $data = get_content("https://graph.facebook.com/" . $facebook_id . "/?fields=name,first_name,last_name,email&amp;access_token=".$access_token);
          $data_array = json_decode($data, true);
  
          $new_array = array(
              "uid" =&gt; $data_array['id'],
              "name" =&gt; $data_array['name'],
              "first_name" =&gt; $data_array['first_name'],
              "last_name" =&gt; $data_array['last_name'],
              "email" =&gt; $data_array['email']
          );
  </code></pre>