I am using spring social Facebook to connect to facebook. The connection works well. I am trying to get the user's location with the following code:
FacebookProfile profile = facebook.userOperations().getUserProfile();
Reference rLocation = profile.getLocation();
Location location= facebook.fetchObject(rLocation.getId(), Location.class);
But what I get is an empty location object (it doesn't have any of the details). I can see that the rLocation does have a name (Los Angeles) but I also need the country.
Any idea how to get the actual Location object?