facebookarchive / php-graph-sdk

The Facebook SDK for PHP provides a native interface to the Graph API and Facebook Login. https://developers.facebook.com/docs/php
Other
3.17k stars 1.96k forks source link

Unsure why but I get error notice in Collection.php when I do fb->get('/me?fields=id,name,email', $_REQUEST["token"]); #1136

Open Elrinth opened 5 years ago

Elrinth commented 5 years ago

on line 201 in Facebook/GraphNodes/Collection.php it says: return $this->items[$key];

and that gives me Notice: email not found.

if I change it to it will run fine: if (isset($this->items[$key])) return $this->items[$key]; else return null;

tolbon commented 4 years ago

Maybe use getField function of same file