Image of a person holding cell phone with social media app folder open

How to Add Social Media Logins to WordPress

You’ll often want users to register new accounts for your WordPress website or WooCommerce store, in order to access certain functionality. However, your visitors may find it challenging to remember their login credentials for each of the different sites they use every day. 

One way to improve the User Experience (UX) for your visitors is to provide social login buttons for sites they probably already have accounts on, such as Twitter and Facebook. This can enable faster registrations and sign-ins, and eliminate tapping issues that mobile users may have when filling out forms.

In this article, we’ll discuss why you might consider adding social logins to WordPress. We’ll also look at how to add them to both WordPress and WooCommerce. Let’s get to it!

Why Add Social Logins to WordPress?

Social logins let visitors use authentication credentials from providers, such as Facebook or LinkedIn, to sign in to your site. Having a set of login details that work everywhere is appealing, as this saves users from needing to create accounts for multiple websites. All they need to do is select a social media button on your login page.

Adding social logins to your site can increase registrations, since the extra hassle of creating a new account is eliminated. You’ll also be more likely to obtain real email addresses. Additionally, since social network providers can enable you to access information such as locations and user interests, you can offer personalized content (leading to a better overall UX).

How to Add Social Logins to Your WordPress Site (In 3 Steps)

There are a variety of social login options that you can add to your website. We’ll illustrate the process using Facebook and a WordPress social login plugin.

Step 1: Install the Super Socializer Plugin

To get started, you’ll need to log in to your WordPress dashboard. Then navigate to Plugins > Add New. Search for “Super Socializer” on the Plugins screen:

Image of how to get started installing the Super Socializer Plugin

Next, click on the Install Now button. Once the plugin is installed, the button text should change to Activate, and you’ll want to select it again.  

Step 2: Configure the Plugin

Once Super Socializer is installed and activated, the next step is to configure it. Start by navigating to Super Socializer > Social Login. To continue, you’ll need to select the checkbox for “Enable Social Login”:

Image of how to configure the Super Socializer plugin

You should now see a list of the various social networks that your users can register with. These include Facebook, Twitter, LinkedIn, and more.

Step 3: Enable Social Login

At this point, you’ll want to tick the checkbox for “Facebook”:

Image of how to enable the social logins on super socializer plugin

To fill out the Facebook App ID and Facebook App Secret form fields, you’ll need to visit the Facebook developer portal and create a new app:

Image of how to create an app using the Facebook Developer portal

Note that if it’s your first time using the portal, you won’t be taken straight to the Apps page. In that case, click on Get Started on the home page to continue. After that, you’ll need to enter some basic details before your app ID can be created.

Select For Everything Else in answer to “How are you using your app?”:

Image of Facebook for Developers Create an App ID fields, select For Everything Else

Next, enter a display name for your app, a contact email, and (optionally) select a Business Manager account:

Image of where to enter a display name for your app, enter a contact email, and link your Business Manager account (optional)

Once your app is created, it’s time to set up the integration. Choose the Facebook Login product:

Image of how to set up the integration, choose the Facebook login product

On the next screen, you’ll want to select Web as your platform:

Image of Facebook for Developers select Web as your platform

Then enter your site’s URL and save it:

Image of Facebook for Developers, enter site URL

Now, you can view your App ID and Secret. To do that, you’ll want to navigate to Settings > Basic:

Facebook for Developers view App ID and Secret

Here, you can copy your App ID and Secret, and paste them back in your WordPress website. Don’t forget to save your settings once you’re done.

You should now see a message at the top of the screen prompting you to add the displayed URL in your Facebook app settings:

Head back to the Facebook developer portal, and navigate to Facebook Login > Settings. Here, you can paste the URL shown above into the Valid OAuth Redirect URIs field. Make sure to save your changes:

Image showing where to paste the URL in the Valid OAuth Redirect URIs

To activate the Facebook login integration on your live site, toggle the switch at the top of the screen labelled In development. You’ll need to choose a category for your app, and then click on Switch Mode:

Image of Facebook for Developers how to choose a category for app

You can now log out of your WordPress site to test your changes:

Image of WordPress login page, you'll need to login and log back out to process changes

You should see a Facebook login button displayed below the usual form fields. Your visitors can start using this button to log in right away.

Adding Social Logins to WooCommerce (In 4 Steps)

WooCommerce offers the ability to use social logins. However, this is only available as a paid feature. Fortunately, Super Socializer can also be used to add login buttons to your registration and login forms, as well as to your checkout pages. Let’s walk through how to do this.

Step 1: Enable Social Commenting

After you’ve installed and activated Super Socializer (following Step 1 in the previous section), you’ll want to navigate to Super Socializer > Social Commenting. Here, you can enable your visitors to make comments using multiple social media services.

Tick the checkbox labelled Enable Social Commenting if this is an option you want to give your users:

Image of Super Socializer settings, enable social commenting

You can enable commenting on pages and posts, as well as on attachments and products. You can also set labels for the available commenting tabs. Further down the page, you can enable Facebook and Disqus commenting, and customize some styling and other options:

Image of how to enable Facebook and Disqus commenting in Super Socializer plugin

Don’t forget to save your changes when you’re done here.

Step 2: Set Up Social Sharing

If you’d like to set up social sharing, navigate to Super Socializer > Social Sharing. Next, ensure that the checkbox labelled Enable Social Sharing is ticked:

Image of how to set up Super Socializer plugin Social Sharing

The Theme Selection tab provides styling options for icon shape, pixel size, background color, and more. Clicking over to the Standard Interface tab provides you with additional options:

Image of Super Socializer Theme Selection tab

You can select from multiple sharing services and social networks, and rearrange their icons:

Image of how to rearrange icons in Super Socializer plugin

You can also choose whether or not to show the total share count for each platform.

Step 3: Enable Like Buttons

To enable users like your content using their social media accounts, you can add ‘like’ buttons via Super Socializer. You’ll want to head over to Super Socializer > Like Buttons, and tick the checkboxes for Enable Like Buttons and Enable standard interface:

Image of how to enable like buttons using Super socializer plugin

You should now see several different options that you can tweak according to your needs in a Standard Interface tab:

Image of options to tweak in Super Socializer Standard Interface

For example, you can customize the target URL for your like buttons. By default, this is set to the home page where the icons are located. However, you can set it to your home page or something else entirely. You can also create a title to display above your like buttons, and select one or more providers. These include Facebook Share, Twitter Tweet, Reddit, and so on.

Next, you can set your buttons’ alignment and positioning. For example, they can be placed at the top or bottom of your content. Finally, you can enable the pages where you want the like buttons displayed. These can be Posts, Pages, Category Archives, and more:

Image of how to set button alignment and positioning

There are also WooCommerce-specific options for enabling like buttons on individual products in your shop, on ‘thank you’ pages, and more.

Step 4: Set Up Social Login

To set up a social login option for Facebook, you can follow the same steps we demonstrated in the previous section. However, if you’d like to enable other options, such as Twitter, LinkedIn, or Instagram, you’ll want to click on the question mark symbol displayed near the relevant platform. 

Then you can follow the instructions that are displayed, which will vary for each option. Here’s what that looks like for Twitter:

Image of how to set up social logins using Super Socializer plugin

Don’t forget to save your changes once you’re done here.

Stay Connected With WP Engine

Adding social logins to your WordPress site or WooCommerce shop can greatly improve the UX for your visitors or customers, and increase the number of registrations. Plus, you can access richer user profiles from social network providers such as Facebook, in order to personalize your content more effectively.

It can be challenging to consistently create excellent user experiences for your customers, but the right WordPress hosting service can help. WP Engine makes it easier to maintain quality service!

Get started

Build faster, protect your brand, and grow your business with a WordPress platform built to power remarkable online experiences.