I’m using the Facebook C# SDK. How can I get language of the user, so I can display all messages accordingly without forcing the user to choose his preferred language manually?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are developing a web app, then you can use
Accept-LanguageHttp header to detect the languageEDIT 1
For winforms application, you can use
System.Globalization.CultureInfo.CurrentCulture.Name.EDIT2
To get the
localeusing FB REST API :You can find info about my extension method
GetDynamicJsonObjecthere