WP ULike
Get Pro
Pro

Social Login — Google Setup

Create a Google Cloud OAuth app and connect it to WP ULike Pro social login.

Let visitors sign in with Google. Requires WP ULike Pro and a Google Cloud OAuth client.


  1. Open Google Cloud Console.
  2. Select or create a project.
  3. Go to APIs & Services → OAuth consent screen.
  4. Choose External user type (unless you use Google Workspace internally only).
  5. Fill in app name, support email, and authorized domains (your site domain).
  6. Add required scopes (email, profile — WP ULike uses standard OpenID scopes).
  7. Save the consent screen.

Step 2: Create OAuth credentials

  1. Go to APIs & Services → Credentials.
  2. Click Create credentials → OAuth client ID.
  3. Application type: Web application.
  4. Set:
    • Name — e.g. WP ULike Social Login
    • Authorized JavaScript originshttps://yourdomain.com (match your site URL)
    • Authorized redirect URIs — copy from WP ULike (next step)
  5. Click Create and note the Client ID and Client Secret.

Step 3: Configure WP ULike

  1. Go to WP ULike → Settings → Social Logins.
  2. Enable Social Logins.
  3. Add a network and choose Google.
  4. Copy the Callback URL shown in settings — it looks like:
https://yourdomain.com/?ulp-api=auth&provider=Google
  1. Paste that exact URL into Google’s Authorized redirect URIs.
  2. Enter Client ID and Client Secret in WP ULike.
  3. Optional: enable Auto Display on login/signup forms, or use [wp_ulike_pro_social_login] on a page or profile tab.
  4. Save settings.

Always use the callback URL from your WP ULike settings — do not guess the provider name or query string.


Step 4: Test

  1. Open your login page in a private window.
  2. Click Google.
  3. Sign in with a Google account.
  4. Confirm you return to your site logged in.

Repeat once to verify consistency. Check the user profile shows expected name and email.


Troubleshooting

ErrorFix
redirect_uri_mismatch
Callback URL in Google must match WP ULike exactly (HTTPS, no extra slash)
Access blocked
Complete OAuth consent screen; add test users if app is in Testing mode
Button missing
Enable Social Logins and Auto Display, or add the shortcode

Related: Social Login & Share · GitHub setup · WordPress.com setup

Continue with these guides