Facebook getting user hometown or location via javascript SDK?

Hi i have an issue with facebook JSsdk

i can get user info email,name but i cant get hometown or location

i have tried

FB.api(‘/me’, function(response) {
and
‘/me?fields=hometown’

im also monitoring the returned values below this code:

console.log(‘results’+JSON.stringify(response));

i’v also checked my permissions there is no problem with it

the only thing i’v got is

results of /me
{“id”:”…”,”email”:”…”,”first_name”:”…”,”gender”:”…”,”last_name”:”…”,”link”:”…”,”locale”:”…”,”name”:”…”,”timezone”:3,”updated_time”:”…”,”verified”:true}

results of /me?fields=hometown
{“id”:”…”}

what i have to do?


Source: facebook

Leave a Reply