Osclass Social Login Free -
Regardless of the plugin you choose, the general workflow remains similar:
For site owners, the decision is rarely binary. The most robust setups are :
Social login for Osclass is an authentication method that uses existing information from social networking services—such as Facebook, Google , or LinkedIn—to sign into your classifieds site. Instead of creating a new username and password, users click a button to authorize the transfer of their basic profile data (like email and name) to your site, instantly creating their account. Top Benefits for Your Classifieds Site
<div class="social-login-buttons"> <a href="https://www.facebook.com/v12.0/dialog/oauth? client_id=<?php echo FB_APP_ID; ?>& redirect_uri=<?php echo urlencode(osc_base_url() . 'social-login/fb-callback.php'); ?>& scope=email,public_profile" class="btn-fb"> Login with Facebook </a> <a href="https://accounts.google.com/o/oauth2/v2/auth? client_id=<?php echo GOOGLE_CLIENT_ID; ?>& redirect_uri=<?php echo urlencode(osc_base_url() . 'social-login/google-callback.php'); ?>& response_type=code& scope=email profile" class="btn-google"> Login with Google </a> osclass social login
$user_id = User::newInstance()->insert($user_data); self::doLogin($user_id); return true;
: A free, open-source alternative. While it requires a bit more manual configuration (like adding PHP hooks to your theme files), it provides a solid foundation for basic Facebook and Google integration. Common Setup Steps
: Copy the App ID (or Client ID) and App Secret from the developer consoles into your Osclass plugin settings. Regardless of the plugin you choose, the general
While simple, this process represents .
: Research suggests that social login can increase successful signups by up to 20% by removing the barrier of long registration forms.
if($user) // Login existing user self::doLogin($user['pk_i_id']); return true; client_id=<
$fb_config = array( 'app_id' => 'YOUR_FB_APP_ID', 'app_secret' => 'YOUR_FB_APP_SECRET', );
$fb = new Facebook\Facebook($fb_config); $helper = $fb->getRedirectLoginHelper();
// Check if email exists $existing = User::newInstance()->findByEmail($email); if($existing) // Link social account User::newInstance()->update(array( $social_network . '_id' => $social_id ), array('pk_i_id' => $existing['pk_i_id'])); self::doLogin($existing['pk_i_id']); return true;