Hi, I am developing an iFrame application in facebook. What is the syntax to get the locale of an user? I am using the PHP client library.
I had tried this piece of code:
<?php
$user_details = $facebook->api_client->users_getInfo($user_id, 'name,hometown_location');
$locale = $user_details[0]['hometown_location']['city'];
echo "Location: ".$locale;
?>
But I get the following error msg:
Fatal error: Cannot use string offset as an array in C:\xampplite\htdocs\FacebookApp\deals.php on line 51
Some one help me with this.