Getting Language Code/Locale from Facebook Graph API -


i have succesfully retrieved language facebook user knows using graph api

the json looks following.

languages =     (     {         id = 105541139480550;         name = indonesian;     },     {         id = 106059522759137;         name = english;     },     {         id = 103088979730830;         name = "mandarin chinese";     } ); 

those array of page of language.

for example:

http://facebook.com/pages/-/106059522759137 redirect english language page

how language code from example "en" english?

https://en.wikipedia.org/wiki/language_code

any appreciated!!!

there's no endpoint language codes of languages object's entries. can query locale of user object, not each language. guess you'll need mapping in own application between language on facebook , language code.

see


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -