require '../src/facebook.php';
// Create our Application instance (replace this with your appId and secret).
$config = array();
$config['appId'] = '109181812948600';
$config['secret'] = 'edflmlkmlkmlkmlkmlk7079e9d5884';
$config['fileUpload'] = false; // optional
$facebook = new Facebook($config);
$uid = $facebook->getUser();
echo $uid;
将用户 ID 返回为 0。我只想访问我在 FB 中上传的照片。