The DiviFlash Social Login extension lets visitors sign in or register using Google, Facebook, X, or GitHub. Display the buttons on WordPress login and registration screens, or elsewhere on your website using a shortcode.
Important Note:
- Social Login is available in DiviFlash 5.9.0 and later.
- Your website must use HTTPS.
- For each provider you want to offer, create an OAuth app and add its Client ID and Client Secret to DiviFlash.
How to Enable Social Login

- Go to WordPress Dashboard > DiviFlash > Extensions > Social Login.
- Enable Social Login and click Configure.
How to Use Social Login
After clicking Configure, set up each provider you want to offer.
- Open the Google, Facebook, X, or GitHub tab in DiviFlash.
- Create an OAuth app in that provider’s developer console.
- Click Copy beside Callback URL and paste it into the app’s redirect URL field. Keep https:// and any trailing slash exactly as shown.
- Enter the app’s Client ID and Client Secret in DiviFlash, then enable the provider and save.
Let’s look at the Social Login settings to see how to control where the buttons appear and who can register.
General Tab
The General tab lets you control where social login buttons appear, manage account registration, set button positions, and configure login redirects.

- Show on Login Form: Display social login buttons on the WordPress login form.
- Show on Registration Form: Display social login buttons on the WordPress registration form.
- Button Position: Place the buttons above the form fields or below the submit button.
- New Accounts: Choose whether social login can create new accounts:
- Follow WordPress “Anyone can register” setting: Use the registration setting under Settings > General. This is the default.
- Always Allow: Let visitors register through social login even when WordPress registration is disabled.
- Never create an account: Allow only existing users to sign in through social login.
- Allow for Administrators: Let administrators sign in using social login. This is disabled by default, so administrators sign in with their WordPress password, which keeps the dashboard protected.
- Redirect After Login: Enter the destination URL after login. Leave it empty to use the default redirect behavior.
- Redirect After Registration: Enter the destination URL after registration.
- Button Design: Click Customize to change the appearance of the social login buttons. See Button Design Settings.
Social Login Provider Settings
Open the tab for the provider you want to offer. The Callback URL tells the provider where to send users after they sign in. The Client ID and Client Secret connect the provider’s app to your website.
Google Tab
Create an OAuth client of the Web application type in Google Cloud Console, then use these settings:

- Enable Google: Enable or disable Google login.
- Callback URL: Click Copy and paste the exact URL into your OAuth client’s Authorized redirect URIs in Google Cloud Console.
- Client ID: Paste the Client ID from your Google OAuth client into DiviFlash.
- Client Secret: Paste the Client Secret from the same OAuth client into DiviFlash. Click Show to reveal it.
- Google Developer Console: Click Open to access Google Cloud Console.
Facebook Tab
Create an app in Meta for Developers, then use these settings:

- Enable Facebook: Enable or disable Facebook login.
- Callback URL: Click Copy and paste the exact URL into your Facebook app’s Valid OAuth Redirect URIs.
- Client ID: Enter your Facebook app’s App ID.
- Client Secret: Enter your Facebook app’s App Secret. Click Show to reveal it.
- Facebook Developer Console: Click Open to access Meta for Developers.
X Tab
Create an OAuth app in the X Developer Portal, then use these settings:

- Enable X: Enable or disable X login.
- Callback URL: Click Copy and paste the exact URL into your X app’s callback URL field.
- Client ID: Enter the Client ID from your X app.
- Client Secret: Enter the Client Secret from the same app. Click Show to reveal the value.
- X Developer Console: Click Open to access the X Developer Portal.
Note: X doesn’t always share the user’s email address. Social Login can’t create an account without an email address, so some visitors may not be able to register with X.
GitHub Tab
Create an OAuth app in GitHub Developer Settings, then use these settings:

- Enable GitHub: Enable or disable GitHub login.
- Callback URL: Click Copy and paste the exact URL into your OAuth app’s Authorization callback URL field.
- Client ID: Enter the Client ID from your GitHub OAuth app.
- Client Secret: Enter the Client Secret from the same app. Click Show to reveal the value.
- GitHub Developer Console: Click Open to access GitHub Developer Settings.
Note: The Callback URL must match exactly. Use the Copy button rather than typing it. If you see a “redirect_uri mismatch” error, the URL in the provider’s console is different from the one in DiviFlash. This is usually caused by a missing trailing slash or by http:// being used instead of https://.
Button Design Settings
Click Customize beside Button Design in the General tab to adjust the buttons’ appearance.

- Layout: Choose how the buttons appear:
- Full-width buttons with label: Display provider icons and text.
- Icons only: Display provider icons without visible labels.
- Button Style: Choose Brand colors, Light, or Dark.
- Alignment: Align the buttons to the Left, Center, or Right.
- Button Label: Customize the button text. Use {provider} to insert the provider’s name.
- Separator Text: Set the text between the login form and social login buttons.
- Border Radius: Adjust the buttons’ corner rounding.
- Space Between Buttons: Adjust the gap between buttons.
- Button Height: Set the buttons’ height.
- Font Size: Adjust the label’s text size. (Applies to the Full-width buttons with label layout.)
Note: You can also access these settings through Appearance > Customize > Advanced General Settings > Social Login. Click Publish to save your changes.
Shortcode
Use to display social login buttons elsewhere on your website. Add it to a WordPress Shortcode block or a Divi module that supports shortcodes.
Use these optional attributes to customize the buttons:
- providers: Choose which providers appear and in what order. Only enabled and configured providers are shown. Example:
- layout: Use wide for full-width buttons or icon for icon-only buttons. Example:
- heading: Add text above the buttons. Example:
- redirect_to: Set where users go after logging in. Example:
Note:
- The shortcode attributes affect only the buttons shown by that shortcode. They don’t change the extension’s global settings.
- Uninstalling DiviFlash removes your Client Secrets and Social Login settings. You’ll need to enter them again if you reinstall the plugin.
Need Help?
If you have any questions or need assistance, contact our support team: [email protected].