문제

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