アプリIDとシークレットIDの取得が前提です。 login.php <?php require_once __DIR__ . '/facebook-php-sdk-v4-5.0.0/src/Facebook/autoload.php'; $appId = "xxxxxxxxxxxxx"; $appSecret = "xxxxxxxxxxxxxxxxxxxxx"; $REDIRECT_URI = "http://192.168.1.1/redirect.php"; $fb = new Facebook\Facebook([ 'app_id' => $appId, 'app_secret' => $appSecret, ]); $helper = $fb->getRedirectLoginHelper(); // Optional permissions $permissions = ['pu