This guide was created to help you install and configure the Social Login extension in your Adobe App Builder project through Adobe Exchange in a simple and straightforward way, without requiring advanced technical knowledge.
This guide assumes that you:
- Have access to Adobe Exchange
- Have an Adobe Developer account
- Have access to the Adobe Commerce administrative panel
- Have developer accounts with social login providers (Google and/or Facebook)
The Social Login extension allows your customers to log in to your site using their Google or Facebook accounts, instead of creating a new account. This makes the registration and login process faster and more convenient.
- Reduced cart abandonment: Faster login = more conversions
- Better customer experience: Fewer forms to fill out
- Increased registrations: Customers prefer social login
- Reliable data: Information validated by providers
Before installing the extension, you need to create applications with social login providers (Google and/or Facebook) to obtain the necessary credentials. These credentials will be used during the extension configuration in Adobe Exchange.
- Go to Google Cloud Console
- Click Select a project at the top
- Click New Project
- Give the project a name (e.g., "My E-commerce Social Login")
- Click Create
-
In the side menu, go to APIs & Services > Credentials
-
Click + Create Credentials > OAuth client ID
-
If prompted, configure the OAuth consent screen:
- Choose External
- Fill in the basic information
- Add your email as a test user
-
Configure the OAuth client:
- Application type: Web application
- Name: Social Login - My E-commerce
- Authorized redirect URIs:
https://your-app.adobeio-static.net/api/v1/web/social-login/google-callback-pageNote: You will need to update this URL after installing the extension in Adobe Exchange. The URL will be provided during installation.
-
Click Create
-
Copy and save in a secure location:
- Client ID - something like:
123456789-abc.apps.googleusercontent.com - Client Secret - a long string
- Client ID - something like:
- Go to Meta for Developers
- Click My Apps > Create App
- Choose Consumer as the app type
- Fill in:
- App Name: My E-commerce Social Login
- Contact Email: Your email
- Click Create App
-
In the app dashboard, find Facebook Login and click Set Up
-
Choose Web as the platform
-
Configure:
- Site URL:
https://your-site.com - Valid OAuth Redirect URIs:
https://your-app.adobeio-static.net/api/v1/web/social-login/meta-callback-pageNote: You will need to update this URL after installing the extension in Adobe Exchange. The URL will be provided during installation.
- Site URL:
-
In the side menu, go to Settings > Basic
-
Copy and save in a secure location:
- App ID - a long number
- App Secret - click Show to view
- Go to Adobe Exchange
- Log in with your Adobe Developer account
- Navigate to the Adobe App Builder extensions section
- Search for "Social Login" or "ACCS Social Login"
- Click on the Social Login extension
- Review the extension information
- Click Install or Add to Project
- Select the Adobe App Builder project where you want to install
- Confirm the installation
The extension will be installed automatically. You will receive a URL for your app, something like:
https://your-app.adobeio-static.net
Save this URL - you will need it in the next steps!
After installation, you will need to configure the extension with your credentials and Adobe Commerce information.
- In Adobe Exchange, go to My Apps or My Projects
- Find the project where you installed the Social Login extension
- Click Configure or Settings
Fill in your Adobe Commerce information:
-
Adobe Commerce Base URL:
- Example:
https://your-ecommerce.adobecommerce.com - This is the base URL of your Adobe Commerce (without
/graphqlor/rest)
- Example:
-
Adobe Commerce API Token:
- See how to obtain it in Step 3.3
-
Adobe Commerce Store Code:
- Usually
default - If you use multiple stores, use the main store code
- Usually
To obtain the Adobe Commerce API token:
- Access the Adobe Commerce administrative panel
- Go to System > Extensions > Integrations
- Click Add New Integration
- Fill in:
- Name: Social Login Integration
- Email: Your email
- Password: Create a secure password
- In API Resources, select:
- β Customer
- β Shopping Cart
- Click Save
- After saving, click Activate in the Actions column
- On the next screen, copy the Access Token
- Paste this token in the Adobe Commerce API Token field in the extension settings
Fill in the Google credentials you obtained in Step 1.1:
- Google Client ID: Paste the Client ID you copied
- Google Client Secret: Paste the Client Secret
Fill in the Meta/Facebook credentials you obtained in Step 1.2:
- Meta App ID: Paste the App ID you copied
- Meta App Secret: Paste the App Secret
- Widget Domain: Use the app URL you received after installation
- Example:
https://your-app.adobeio-static.net - This URL should already be automatically filled in
- Example:
- CORS Origins: Add your site domains, separated by commas
- Example:
https://your-site.com,https://www.your-site.com - Add all domains where the widget will be used
- Example:
- Review all settings
- Click Save or Apply
- Wait for confirmation that the settings have been saved
Now that you have the app URL (provided by Adobe Exchange), update the redirect URLs in the OAuth providers.
- Go back to Google Cloud Console
- Go to APIs & Services > Credentials
- Click on your OAuth Client ID
- In Authorized redirect URIs, add or update:
(Replace
https://your-app.adobeio-static.net/api/v1/web/social-login/google-callback-pageyour-app.adobeio-static.netwith your actual app URL) - Click Save
- Go back to Meta for Developers
- Select your app
- Go to Facebook Login > Settings
- In Valid OAuth Redirect URIs, add or update:
(Replace
https://your-app.adobeio-static.net/api/v1/web/social-login/meta-callback-pageyour-app.adobeio-static.netwith your actual app URL) - Click Save Changes
- Access your app URL:
https://your-app.adobeio-static.net/index.html(Use the URL provided by Adobe Exchange) - You should see a page with social login buttons
- Click "Login with Google" or "Login with Facebook"
- Complete the login in the popup that opens
- Verify that the login was successful
- You should see a success message or be redirected
- Access the Adobe Commerce administrative panel
- Go to Customers > All Customers
- Verify that the customer who logged in with social login appears in the list
- If it appears, the integration is working correctly!
Now that the extension is installed and working, you need to integrate it into your site. There are different ways to do this depending on your platform.
If you have access to your site's HTML code:
- Add the widget to the login page:
<div id="social-login-widget"></div> <script src="https://your-app.adobeio-static.net/SocialLoginWidget.js"></script> <script> new SocialLoginWidget({ containerId: 'social-login-widget', apiEndpoint: 'https://your-app.adobeio-static.net/api/v1/web/social-login', providers: ['google', 'meta'], theme: 'light', showLabels: true, buttonSize: 'medium', onSuccess: function(data) { console.log('Login successful:', data); // Redirect or update UI window.location.href = '/customer/account/'; }, onError: function(error) { console.error('Login failed:', error); alert('Login error. Please try again.'); } }); </script>
Remember: Replace
your-app.adobeio-static.netwith your actual app URL
If you use traditional Adobe Commerce, see the guide at:
examples/magento-module/README.md
This module allows you to configure Social Login directly from the Adobe Commerce administrative panel.
If you use AEM Edge Delivery Services, see the guide at:
examples/aem-edge-integration/README.md
This guide shows how to integrate Social Login into AEM Edge blocks.
Possible causes and solutions:
- Incorrect OAuth credentials: Verify that Google or Meta credentials are correct in the extension settings
- Extension not configured: Make sure you saved all settings in Adobe Exchange
- Incorrect app URL: Verify that the Widget Domain URL is correct
How to verify:
- Access the extension settings in Adobe Exchange
- Review all credentials
- Save the settings again
Possible causes and solutions:
- Incorrect redirect URLs: Verify that URLs in OAuth providers are correct
- CORS not configured: Verify that your site domain is in CORS Origins
- Console error: Open the browser console (F12) and check for errors
How to verify:
- Open the browser console (F12)
- Go to the Console tab
- Try logging in again
- See if there are error messages
Possible causes and solutions:
- Incorrect Commerce URL: Verify that
COMMERCE_CLOUD_BASE_URLis correct - Invalid API token: Verify that the token has the correct permissions
- Incorrect Store Code: Verify that the store code is correct
How to verify:
- Access the Adobe Commerce panel
- Go to System > Extensions > Integrations
- Verify that the Social Login integration is active
- Test the API token by making a manual request
Possible causes and solutions:
- Domain not configured: Add your site domain to CORS Origins
- Incorrect protocol: Make sure to use
https://in domains
How to resolve:
- Access the extension settings in Adobe Exchange
- In CORS Origins, add all domains where the widget will be used
- Use the format:
https://your-site.com,https://www.your-site.com - Save the settings
Possible causes and solutions:
- JavaScript not loaded: Verify that the
SocialLoginWidget.jsscript is being loaded - Container doesn't exist: Verify that the element with
id="social-login-widget"exists on the page - Console error: Open the browser console to see errors
How to verify:
- Open the browser console (F12)
- Go to the Network tab
- Reload the page
- Verify that
SocialLoginWidget.jswas loaded successfully (status 200)
If you encounter problems during installation:
-
Consult the technical documentation:
README.md- Complete technical documentation
-
Check the examples:
examples/README.md- Integration examples guide
-
Adobe Exchange Support:
- Access support through Adobe Exchange
- Check if there is additional documentation on the extension page
-
Check the logs:
- In Adobe Exchange, you can access application logs
- Look for errors related to Social Login actions
If all checklist items are checked, your Social Login extension is installed and working! Your customers can now log in using Google or Facebook.
Tip: Keep this guide saved for future reference. If you need to make changes or updates, you can access the extension settings in Adobe Exchange at any time.