Possible Duplicate:
Parse Json in php
I was looking for this awnser but couldnt find it... so here is the question
How can I get the information from https://graph.facebook.com/XXXXXXX into vars, from this:
{
"id": "XXXXXXX",
"name": "Ricardo Capistran",
"first_name": "Ricardo",
"last_name": "Capistran",
"username": "richycapy",
"gender": "male",
"locale": "es_LA"
}
Into this vars:
$id, $name, $firstname, $lastname, $username, $gender, $locale