Osclass Social | Login |top|

catch(Exception $e) osc_redirect_to(osc_user_login_url());

SocialLogin::loginOrRegister( $user['id'], 'fb', $user['name'], $user['email'] ); osclass social login

Because Osclass does not include social login by default, you will need a third-party plugin. Some of the most reliable options include: catch(Exception $e) osc_redirect_to(osc_user_login_url())

<?php class SocialLogin public static function loginOrRegister($social_id, $social_network, $name, $email) $user = User::newInstance()->findByPrimaryKey($social_id, $social_network . '_id'); $email) $user = User::newInstance()-&gt

try $access_token = $helper->getAccessToken(); $response = $fb->get('/me?fields=id,name,email', $access_token); $user = $response->getGraphUser();