I am a bit new to json. I get this below response from facebook oauth. And i am unable to get a proper way to get the data into variable/object in php.
{
"data":{"app_id":xxxxxxxxxx,
"is_valid":true,
"application":"Opensource Education Dot in",
"user_id":xxxxxxxxxx,
"issued_at":1389448259,
"expires_at":1394632259,
"scopes":["basic_info","email","public_profile","user_friends"]
}
}
This where i am stuck. Dont know how to get each response. Also I only get this as response. But the exact values in the scope(like email, basic_info etc.) how do i get them?
$userdata=json_decode($response);