I keep getting the error in the title, while using a simple code:
require_once(\'sdk/src/facebook.php\');
require_once(\"AppInfo.php\");
function idx(array $
You need to set the access token to be able to get data or act on behalf of the user. Are you going through a login flow to allow authorization to your Facebook application?
Try the example at https://developers.facebook.com/docs/reference/php/facebook-api/
It provides the very basic login flow that will grant access to the data you're seeking.