1

I would like to create a FQL query where i would only get the hometown_location.city from the FQL and not all the hometown_location (array). is there a way to do it?

my current query is the following :

SELECT uid, hometown_location FROM user WHERE uid = me();

keep in mind that all my blank space are replaced by '+' so currently my query works.

My current result returns me an array which contain the city,state,country,zip,id and name.

The result has a little to much info for what i want to do with the result isn't there a way to only get the city?

4

1 回答 1

0

使用点运算符:“hometown_location.city”应该可以工作

所以你的查询是:

SELECT uid, hometown_location.city FROM user WHERE uid = me();
于 2013-07-19T09:50:13.747 回答