spring-attic / spring-social-facebook

Facebook API binding and connect support.
http://projects.spring.io/spring-social-facebook
Apache License 2.0
247 stars 269 forks source link

Profile location state and Country are null #108

Open danilomr12 opened 10 years ago

danilomr12 commented 10 years ago

When getting a profile location ou hometown like: Facebook facebook = new FacebookTemplate(token) FacebookProfile fbProfile = facebook.userOperations().userProfile location = facebook.pageOperations().getPage(fbProfile.location.id).location

fbProfile.location returns only name and id with the id we can get the page/place by doing

facebook.pageOperations().getPage(fbProfile.location.id).location This location returned is a city and the has just a name and lat long position, no id, no state, no country. Like shown at the print screen at the link above: captura de tela 2014-03-11 11 01 34

bytor99999 commented 9 years ago

This issue has been in Spring Social for a real long time. Country and Location is part of a user's public profile and should be available. But I too always see null in those values.

We could use an IP Location db that we have, but the ConnectionSignUp API execute method doesn't give us access to the users IP address to do that kind of lookup.

Thanks

Mark