hi Guys, i need to get data from array_keys the script i use in the server side:
PHP:
$friends = json_decode(file_get_contents(
'https://graph.facebook.com/me/friends?access_token=' .
$facebook->getAccessToken() ), true);
$friend_ids = array_keys($friends);
the data of array look as above:
{
"data": [
{
"name": "Tal Rozner",
"id": "554089741"
},
{
"name": "Daniel Kagan",
"id": "559274789"
},
{
"name": "ron cohen",
"id": "100001553261234"
}
]
}
i need to get all this data to an array that i can work with it.
how can i do it ? tanks,