I have:
$user = json_decode(file_get_contents(
'https://graph.facebook.com/me?access_token=' .
$cookie['access_token']), true);
var_dump($user);
which works fine and gives profile output.
But:
$events = json_decode(file_get_contents(
'https://graph.facebook.com/me/events?access_token=' .
$cookie['access_token']), true);
var_dump($events);
gives:
object(stdClass)#5 (1) { ["data"]=> array(0) { } }
I'm not sure if this is an empty object, or if I'm not accessing what's inside 'data' correctly. But, I know there are in fact events associated with my profile. Permissions have been granted, so that's not the problem. Anyone know how to return all event names for my profile?