Facebook PHP Coding Issue
Hi. When I request data from facebook, it returns it in a jSON response like this:
{
"data": [
{
"installed": 1,
"read_stream": 1,
}
]
}
Next I use "$fb_response = json_decode($requests, true);", which has worked for all other Facebook requests.
I try to store the field "read_stream" data in my array-
$user["read_stream"] = $fb_response->{"read_stream"};
but I can't get it to work. What am I doing wrong?
|