authenticate($provider); header('Location: hybridauth_callback.php?provider=' . $provider); } catch (Exception $e) { echo 'Oops, we ran into an issue: ' . $e->getMessage(); } } else { echo 'Provider not specified.'; }