support.cubewp.com support.cubewp.com
  • Helpdesk
  • Support Forum
Get CubeWP
support.cubewp.com support.cubewp.com
Get CubeWP
support.cubewp.com
  • Helpdesk
  • Support Forum

Docy

CubeWP Social Logins

  • getting startGetting Started
    • How to install Social Login Plugin?
  • fun fact 1How to get Keys for Google and Facebook?
  • requirementsRequirements
  • faqFAQs
  • stopChangelog

How to get Keys for Google and Facebook?

Estimated reading: 2 minutes 1943 views

To obtain Google and Facebook API keys, you will need to follow the steps below:

For Google API Key:

  1. Go to the Google Cloud Console and sign in with your Google account.
  2. Create a new project, or select an existing project.
  3. Go to the API Library and enable the “Google Identity Platform” API.
  4. From the left-hand menu, select “Credentials” and click the “Create Credentials” button.
  5. Select “OAuth client ID” from the dropdown menu.
  6. Choose the application type you want to create credentials for. In this case, choose “Web application”.
  7. Enter the authorized JavaScript origins and redirect URIs for your application.
  8. For the authorized JavaScript origins, enter the domain name where your application is hosted.
  9. For the redirect URIs, enter the URL that Google should redirect users to after they have authenticated with Google.
  10. Click “Create”.
  11. Copy the “Client ID” and “Client Secret” values that are generated.
  12. Use these values in your application’s code to enable Google Sign-In.
    You can get your keys from this link:
    https://developers.google.com/identity/gsi/web/guides/get-google-api-clientid

Note: Please make sure that your Redirect URL should be in this format
https://example.com?cubewp-social-login=google

For Facebook API Key:

  1. Go to the Facebook Developers website and sign in with your Facebook account.
  2. Create a new app by going to the “My Apps” dashboard and selecting “Create App”.
  3. Choose the app type that corresponds to your use case (e.g., website, iOS app, Android app, etc.).
  4. Configure your app settings, including the name, category, and contact information.
  5. Go to the “Dashboard” tab and copy your App ID and App Secret.
  6. Use your App ID and App Secret to authenticate your app and access the Facebook APIs.

You can get your keys with this link: https://developers.facebook.com/docs/development/create-an-app
Note: Please make sure that your Redirect URL should be in this format
https://example.com?cubewp-social-login=facebook

Where to add Keys?

  1. Go to CubeWP
  2. Navigate to CubeWP Settings
  3. Click Social Logins
  4. By default social logins will be disabled. Social logins can be enabled from CubeWP Settings
  5. Paste Client IDs
  6. Paste Client Secret IDs

Share this Doc

How to get Keys for Google and Facebook?

Or copy link

Clipboard Icon
CONTENTS
Leaf Illustration

© 2023 All Rights Reserved by CubeWP