Login with social networks
Allow users to log in/sign in using their Facebook, Google and other popular social network accounts.
Requirements
To login with social networks, the Snax plugin is required.
Locations
The social login links are integrated into:
Snax Login Popup
To change buttons template for this location, please go to WP admin panel › Settings › Snax › Social Login › Locations page.
BuddyPress Registration Page
To change buttons template for this location, please go to WP admin panel › Settings › Snax › Social Login › Locations page.
Workflow
By logging in using social networks a user:
- DON'T have to fill in a registration form - an account is created under the hood
- DON'T have to activate an account using an activation link - an account is activated immediately, after successful social network authentication
- DON'T have to register again on different site within a network - the existing account is used to grant access to a site
Settings
All module related settings are on the WP admin panel › Settings › Snax › Social Login page.
Enable/Disable
You can enable the social login module on the WP admin panel › Settings › Snax › Social Login page, in the General tab.
Networks setup
Currently the following networks are supported:
To set up the networks, please follow these steps:
- Go to the WP admin panel › Settings › Snax › Social Login section
- Choose the Networks tab
- Check the Enabled box right next to a network you want to active
- Provide the Application ID. How to get this info for each network, is explained further on this page
- Provide the Application Secret. How to get this info for each network, is explained further on this page
- Save changes
To enable authentication with Facebook, please follow the steps:
- Go to https://developers.facebook.com/apps
- Click Add a New App button
- Fill in Display Name and Contact Email and click Create App ID button
- Find Facebook Login product and click Set up button below it
- Click Web from available platforms
- Provide your Site URL, click Save and then Continue
- Skip all next steps by clicking Next button
- Now, from the left menu select Settings under Facebook Login product
- Return back to your site and go to WP admin panel › Settings › Snax › Social Login › Networks page
- In Facebook section, click Where do I get this info? link
- You should see Valid OAuth Redirect URI, copy it
- Paste the copied URL into Valid OAuth Redirect URIs field and Save Changes
- You have to also provide a link to your site's privacy policy. It's required to go live
- To do that, please select Settings » Basic from the left menu
- Fill in Privacy Policy URL and click Save Changes
- You application is currently in development mode. We have to make it live to allow users log in with it
- Click OFF in top right corner, choose Category and click Confirm
- When your app is live, you should see green ON switch
- Your app is now ready to use. Go back to WP admin panel › Settings › Snax › Social Login › Networks page and past the created application credentials (APP ID and App Secret) into the Facebook fields
- Make sure that Enabled box is checked
- Save changes
To enable authentication with Google, please follow the steps:
- Go to https://console.developers.google.com
- Click Select a project in top left corner
- When projects popup shows up, click New project
- Fill in Project name and Location and click Create button
- Once the project is created. Select it (screen, point 1). Then click left side menu (screen, point 2) and go to APIs & Services › Dashboard (screen, point 3)
- Click + ENABLE APIS AND SERVICES
- From API Library, select Google+ API and on the next screen click Enable
- Click CREATE CREDENTIALS button
- Select Google+ API, Web browser (javascript) and User data like on the screen below and click What credentials do I need? button
- Once the popup shows up, click Set up OAuth consent screen
- Fill in Application name and Support email
- Fill in Authorized domains. It's your site's domain
- Fill in Application Homepage link. It's your site's homepage
- Fill in Application Privacy Policy link
- Click Save button
- Now, click Create credentials button and select OAuth client ID
- Select Web application as application type
- Fill in Name
- Provide Authorized JavaScript origins. It's your site's domain
- Provide Authorized redirect URIs. Read the next step from where you can get it
- To get Authorized redirect URI, please return back to your site and go to WP admin panel › Settings › Snax › Social Login › Networks page
- In Google section, click Where do I get this info? link
- You should see Authorized redirect URI, copy it
- Paste the copied URL into Authorized redirect URIs and click Create
- Popup with created credentials should show up
- Go back to WP admin panel › Settings › Snax › Social Login › Networks page and past the application credentials into the Google fields. Application Client ID into Snax Application ID and Client Secret into Application Secret
- Make sure that Enabled box is checked
- Save changes
To enable authentication with Twitter, please follow the steps:
- Go to https://developer.twitter.com/apps
- Click Create an app button
- Fill in required fields:
- App name - has to be unique
- Application description - explain what your app is built for
- Website URL - your site's homepage URL
- Enable Sign in with Twitter
- Callback URLs - the same as Website URL
- Tell us how this app will be used - explain it's for a social login on your site
- Click Create button
- Read Developer Terms and click Create
- Switch to Keys and tokens tab
- From Consumer API keys section, please copy API key and API secret key
- Go back to WP admin panel › Settings › Snax › Social Login › Networks page and past the created application credentials into the Twitter fields. Application API key into Snax Application ID and API secret key into Application Secret
- Make sure that Enabled box is checked
- Save changes
To enable authentication with Instagram, please follow the steps:
- Go to https://developers.facebook.com/. Instagram is owned by Facebook and now Instragram API is managed by Facebook
- Click My Apps, and create a new app. Once you have created the app and are in the App Dashboard, navigate to Settings > Basic, scroll the bottom of page, and click Add Platform
- Choose Website, add your website’s URL, and save your changes. You can change the platform later if you wish, but for this tutorial, use Website
- Click Products, locate the Instagram product, and click Set Up to add it to your app
- Click Basic Display, scroll to the bottom of the page, then click Create New App
-
In the form that appears, fill in:
- Display Name. Enter the name of the Facebook app you just created
- Valid OAuth Redirect URIs. Read below from where you can get it
- Deauthorize Callback URL. Copy here the Valid OAuth Redirect URIs value
- Data Deletion Request Callback URL. Copy here the Valid OAuth Redirect URIs value
- App Review for Instagram Basic Display. Read Instagram App Review to learn more
- To get Valid OAuth Redirect URI, please return back to your site and go to WP admin panel › Settings › Snax › Social Login › Networks page
- In Instagram section, click Where do I get this info? link
- You should see Valid Redirect URI
- Once you have finished, copy Instagram App ID and Instagram App Secret
- Go back to WP admin panel › Settings › Snax › Social Login › Networks page and past the application credentials into the Instagram fields.
- Make sure that Enabled box is checked
- Save changes
To enable authentication with LinkedIn, please follow the steps:
- Go to https://www.linkedin.com/developers/apps
- Click Create app button
- In App information section, fill in required fields:
- App name
- Company - you have to select your company page. Create a new one if you don't have it already. It's required step as your application has to be verified by company admin later in the verification process.
- Business email
- All logo - must be square and at least 100x100 pixels
- In Products section, please check Sign In with LinkedIn product
- In Legal terms section, please agree to these terms
- Click Create app button
- In App settings, click the Verify button and follow the steps of creating a new page
- After successful verification, you should see green Verified flag next to your company name
- Return back to your site and go to WP admin panel › Settings › Snax › Social Login › Networks page
- In LinkedIn section, click Where do I get this info? link
- You should see Redirect URL, copy it
- Now, back in LinkedIn application, click Auth tab
- Scroll down to OAuth 2.0 settings
- Paste the copied URL into Redirect URLs field and Save Changes
- From Application credentials section, please copy Client ID and Client Secret
- Go back to WP admin panel › Settings › Snax › Social Login › Networks page and paste the created application credentials into the LinkedIn fields. Application Client ID into Snax Application ID and Client Secret into Application Secret
- Make sure that Enabled box is checked
- Save changes
VKontakte
To enable authentication with Vkontakte (vk.com), please follow the steps:
- Go to https://vk.com/apps?act=manage
- Click Create app button
- Fill in required fields:
- Title
- Platform - choose Website
- Website address - your site's full URL
- Base domain - just site's domain, without http(s):// or subdirs
- Click Connect website button
- From Settings section, please copy App ID and Secret key
- Go back to WP admin panel › Settings › Snax › Social Login › Networks page and paste the created application credentials into the VKontakte fields. Application App ID into Snax Application ID and Secret key into Application Secret
- Make sure that Enabled box is checked
- Save changes
Odnoklassniki
To enable authentication with Odnoklassniki (ok.ru), please follow the steps:
- Open https://ok.ru/devaccess to gain developer rights. Link an email to your account. Check your mailbox to confirm the email
- After obtaining developer rights, go to your account settings on OK.ru, select Games, then My downloads and click Add app

- Fill in required fields:
- Title
- Short name
- Description

- Click Add platform button and choose
OAuth

- After choosing the OAuth platfrom, two new fields should show up
- Fill in:
- Site URL - your site's full URL
- Redirect URL - the same as Site URL
- Save changes

- On your email you will get your OAuth credentials Application key, Public key and Secret key.

- Go back to WP admin panel › Settings › Snax › Social Login › Networks page and paste the created application credentials into the Odnoklassniki fields. All fields are required: ID, key and secret
- Make sure that Enabled box is checked
- Save changes
Multisite support
The social login module supports WordPress Network / Multisite sites. When a user logs into a site within a network for the first time, his account is created. The user's role is set based on the network's default role (Snax sets it to the Snax Author by default). When the user's account already exists and the user logs into a different site within the same network, his capabilities are extended and the same role is granted to the user to that new site.
General Data Protection Regulation (GDPR)
GDPR is an EU privacy regulation that enforces a certain standard of handling and obtaining user data. Bimber has certain ready-made integrations so you can make your site GDPR ready in a few simple steps.
The WP GDPR Compliance plugin assists website and webshop owners to comply with European privacy regulations known as GDPR. By May 24th, 2018 your site or shop has to comply to avoid large fines.
Requirements
Snax uses the WP GDPR Compliance plugin to provide GDPR integration. Please make sure you have it activated.
Workflow
When the GDPR integration is enabled, a user will be asked to accept your privacy policy terms before logging in with any of available social networks.
Enable
To enable the GDPR integration, please:
- Go to the WP admin panel › Settings › Snax › Social Login section
- Choose the GDPR tab
- Check the Enabled box
- Fill in the Consent text for your users
- Add the
%privacy_policy%
tag to the Consent text. It will be replaced with the target Privacy Policy page - The Privacy Policy page can be set in the GDPR plugin's setting page
Instagram App Review
To use your Instagram application, it has to be in Live Mode or your Instagram user's account has to be added to it as a test user.
Switch to Live Mode
To go Live with your app, you have to submit it for a review. Go back to your Facebook Developer Account, then Instagram > Basic Display and choose instagram_graph_user_media submission option.
Add a test user
Your application doesn't have to be Live to allow you test it. All you need is to add a test user. To do so, please do as follows:
- Go back to your Facebook Developer Account
- Navigate to Roles > Roles and scroll down to the Instagram Testers section. Click Add Instagram Testers and enter your Instagram account’s username and send the invitation.
- Go to your Instagram Account
- Click Edit Profile
- Navigate to Authorized Applications
- Choose Tester Invites and accept the invitation
- Your Instagram account is now eligible to be accessed by your Facebook app while it is in Development Mode
Debugging
To enable the social login debug mode, please do as follows:
- Go to the WP admin panel › Settings › Snax › Social Login section
- Choose the Log tab
- Check the Enabled box
- Save changes
- From now on, all login sessions (ended with success or failure) will be listed here to allow you to trace all kind of problems. When you want to report a problem to the support center, please attach a session log.
- It's recommended to disable the debug mode when going live