When using facebook connect with devise, I get the hometown like this:
... hometown=#<Hashie::Mash id="116045151742857" name="Munich, Germany">
locale="de_DE" ...
Is there a way to get each users hometown in his own locale or at least in one set locale (de_DE in my case), e.g. “München, Deutschland” with the facebook API?
I don’t want to sport my own database of hometowns if I don’t have to.
Note tested, but you could try adding &locale=de_DE to the graph call. You can get the locale from the user object so potentally could customise this per user. Do a “/me” graph call to get the locale, then do a “/me?locale=de_DE” to get it in the user’s language.
As I’ve said, I’ve not tested so it may not change the content of the field (e.g. Germany -> Allemande) but worth a shot if you’ve not tried it.