Accessing user languages ​​using the Graph API?

How do you access user languages ​​using the Facebook GRAPH API? I do not see it anywhere in the permissions, and I cannot find it in another way. If the user indicates that they speak Spanish or French, how can I find this?

+5
source share
3 answers

You can get languages ​​from https://graph.facebook.com/me .

If you are looking for a custom locale, as @ chacham15 mentions, then it is from the locale variable. See https://graph.facebook.com/harikt .

http://developers.facebook.com/tools/explorer?method=GET&path=me .

:

user_likes .

    [languages] => Array
    (
        [0] => Array
            (
                [id] => 105692839465644
                [name] => Malayalam
            )

        [1] => Array
            (
                [id] => 106059522759137
                [name] => English
            )

    )

, .

+8

, , , , :

$locale_f=$parsedJson->locale; 
$lang1=explode("_",$locale_f);
if ($lang1[0]=="es") $lang1="espagnol";
if ($lang1[0]=="en") $lang1="anglais";
if ($lang1[0]=="it") $lang1="italien";
if ($lang1[0]=="pt") $lang1="portugais";
if ($lang1[0]=="fr") $lang1="francais";
+1

, . , - en_US (us english), en_GB ( ) fr_FR ( ).

0

All Articles