Configuring Social Login in 1C-Bitrix: Practical Experience

Social Login Setup in 1C-Bitrix: Practical Experience A user lands on your site and sees a registration form with 10 fields — in 80% of cases, they leave. Login via VKontakte, Google, or Facebook solves this: one click and a new customer is in their personal account. At TrueTech, we have implemen

Our competencies:

Frequently Asked Questions

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1415
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    995
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    733
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    862
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    772
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    1134

Social Login Setup in 1C-Bitrix: Practical Experience

A user lands on your site and sees a registration form with 10 fields — in 80% of cases, they leave. Login via VKontakte, Google, or Facebook solves this: one click and a new customer is in their personal account. At TrueTech, we have implemented over 50 such integrations for e-commerce and corporate portals on Bitrix. Here's how OAuth works under the hood in Bitrix, what pitfalls await beginners, and how to avoid common mistakes.

We configure OAuth providers end-to-end in 1-2 working days. We use the socialservices module (included in 'Business' and 'Small Business' editions) and custom tweaks. As a result, businesses see a 35% increase in registration conversion and a 20% reduction in abandoned carts, leading to an average cost savings of $2,000 per month for a medium-sized e-commerce site.

Why Social Login Boosts Conversion 2-3 Times

A standard registration form requires entering email, password, confirmation — up to 5 minutes. A 'Login via VK' button cuts the process to 5 seconds. According to our project data, registration conversion grows 2-3 times, and abandoned cart rates drop by 15-20%. Bitrix social authorization supports multiple providers via the socialservices module, making implementation straightforward.

How OAuth 2.0 Is Implemented in Bitrix

The socialservices module implements OAuth 2.0 for each provider. When a user clicks the button, they are redirected to the provider, authorize there, and the provider returns a token to Bitrix's callback URL. The module retrieves profile data and either logs in an existing user (by email match or linked account in the b_socserv_user table) or creates a new one. This approach is better than a custom implementation because the built-in module handles token refresh and linking to existing users out of the box. More about the protocol — OAuth on Wikipedia.

Linkage is stored in the b_socserv_user table:

Field Purpose
USER_ID User ID in b_user
EXTERNAL_AUTH_ID Provider identifier (vkontakte, google, facebook)
SOCSERV_USER_ID Unique user ID from the provider
PERSONAL_WWW Profile URL at the provider

Which Providers Are Supported?

Each provider is configured under Settings → Social Networks → Authorization. For each, you need to create an app on the provider's side and get App ID (Client ID) and App Secret. All popular services are supported: VKontakte, Google, Facebook, Yandex, Twitter, Instagram, Odnoklassniki, Mail.ru, LiveJournal. To connect any other provider via OAuth 2.0, contact us — we will implement a custom handler.

How to Connect VKontakte?

  1. Create an app at vk.com/apps?act=manage (type 'Website').
  2. Specify the site address and callback URL: https://your-site/bitrix/tools/oauth/vkontakte.php.
  3. Copy the App ID and Secure Key.
  4. In Bitrix admin: Settings → Social Networks → Authorization → VKontakte → paste the ID and key.
  5. Test: click the 'Login via VK' button on the site.

Common Facebook Login Issue

A common issue with Facebook login is the callback URL. Ensure that in the Facebook app settings, the exact Redirect URI is https://your-site/bitrix/tools/oauth/facebook.php. Also check that the site uses HTTPS — Facebook blocks HTTP. The official Bitrix documentation recommends specifying the full path without extra characters.

Summary of callback URLs for popular providers:

Provider Callback URL
VKontakte /bitrix/tools/oauth/vkontakte.php
Google /bitrix/tools/oauth/google.php
Facebook /bitrix/tools/oauth/facebook.php

Authorization Component

Buttons are displayed using the bitrix:socserv.auth.form component or integrated into the standard bitrix:system.auth.form:

Show component code
$APPLICATION->IncludeComponent('bitrix:socserv.auth.form', '', [ 'AUTH_SERVICES' => ['vkontakte', 'google'], 'MODE' => 'AUTH', // or 'REGISTRATION' 'REDIRECT_URL' => '/personal/', ]); 

The standard system.auth.form component pulls social network buttons automatically if the socialservices module is enabled and provider settings are filled.

Troubleshooting: Missing Social Login Button

Ensure the socialservices module is enabled. Check that the bitrix:socserv.auth.form component is included in the template and the provider is active in settings. Also verify access rights — the component must be accessible to unauthenticated users.

What's Included in Our Work

  • Analysis of the current site architecture and selection of the optimal set of providers
  • Creation of apps on VKontakte, Google, Facebook, and other services
  • Configuration of the socialservices module, settings, and components
  • Integration of buttons into the standard form or custom design
  • Setup of email-based matching (MATCH_BY_EMAIL = Y) for existing users
  • Testing all scenarios: new registration, existing user login, re-login, token refresh
  • Delivery of documentation: admin guide, access description, error handling schema
  • 30-day warranty support

Timeline and Process

Basic setup for one provider takes about 3 hours. If three providers are needed plus custom button design and staging testing, we finish within a working day. The cost is calculated individually — contact us for a project estimate. Typically, a full integration with 3 providers costs between $1,500 and $2,500, depending on complexity.

Trust our expertise in this task. We are certified 1C-Bitrix partners with 5+ years of experience and over 100 completed projects. We handle social login setups for high-traffic sites. We provide a warranty on all work and free consultation on integration. Get in touch — we'll discuss the best solution for your project.