質問

My android application uses Facebook SDK. I want to know, is it possible to get friend's name in two languages. For example, my friend have two name options in Facebook, english version and russian version. So I want to get russian version of name.

役に立ちましたか?

解決

I don´t know if this works for usernames (didn´t even know it is possible to define them in different languages), but normally you get translated data by adding a locale parameter to an API call. For example:

/me?locale=de_DE

他のヒント

No, this is not possible directly as explained here: How to get Facebook Alternate Name via Graph API? but the answer there does have a workaround that doesn't sound that promising.

Also look at the bug report that post refers to, it was closed and nothing done with it.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top