I tried the curl as the filegetcontents now working in php can any one give me the solution so solve it using curl here is the code
$userData = json_decode(file_
Try this:
$json = json_decode(file_get_contents('https://graph.facebook.com/me?access_token='.$token.'&fields=name,id'),true); $json_output = json_decode($json, true);
Now you can get specific item like this:
echo $json_output['id'];