M
M
mavellol2017-08-04 10:34:10
Facebook
mavellol, 2017-08-04 10:34:10

How to get a name in Cyrillic when registering via facebook?

I implemented Facebook registration on my website, but the name comes in Latin, although on Facebook it is in Cyrillic. How to get the username is what is written in facebook?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Philipp, 2017-08-22
@mavellol

Use the locale option.

$request = new FacebookRequest(
  $session,
  'GET',
  '/me',
  array(
    'fields' => 'id,name',
    'locale' => 'ru'
  )
);

$response = $request->execute();
$graphObject = $response->getGraphObject();
/* handle the result */

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question