title: How do we access the latitude and longitude of a location returned by facebook graph API?
body: <p>When we have made this query,</p>
  
  <pre><code>me?fields=location
  </code></pre>
  
  <p>the data that is returned is </p>
  
  <pre><code>{
    "location": {
      "id": "152971558114865",
      "name": "Kharagpur"
    },
    "id": "884016091689459"
  }
  </code></pre>
  
  <p>My question is how do we get the latitude and longitude of this place using the location id?</p>
  
  <p>I know i need to make this query for it. But I cannot understand how to use this? </p>
  
  <p><code>GET v2.6/...?fields={fieldname_of_type_Location} HTTP/1.1
  Host: graph.facebook.com</code></p>
  
  <p>Can someone write an exact code for this query?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I wrote this code : </p>
  
  <pre><code>function testAPI() {
      FB.api('/me', {fields: "id,birthday,email,gender,location,name"},function(response) {
    });
  
  
  /* make the API call */
  FB.api("...?fields={response.location}",
  function (response2) {
    console.log(response2);
  }
  );
  }
  </code></pre>
  
  <p>I get an error in response2.</p>
  
  <pre><code>message : Some of the aliases you request do not exist. 
  type: OAuth Exception 
  </code></pre>