'173537556720247', 'app_secret' => 'dbec745d356676117983db9b5c243d60', 'default_graph_version' => 'v2.10', ]); $helper = $fb->getRedirectLoginHelper(); $permissions = ['email']; // Optional permissions $loginUrl = $helper->getLoginUrl('http://loidich.com/Facebook/fb-callback.php', $permissions); echo ''; echo 'Đăng nhập với Facebook'; ?>