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.
Step 1: Configure the consent screen
- Open Google Cloud Console.
- Select or create a project.
- Go to APIs & Services → OAuth consent screen.
- Choose External user type (unless you use Google Workspace internally only).
- Fill in app name, support email, and authorized domains (your site domain).
- Add required scopes (email, profile — WP ULike uses standard OpenID scopes).
- Save the consent screen.
Step 2: Create OAuth credentials
- Go to APIs & Services → Credentials.
- Click Create credentials → OAuth client ID.
- Application type: Web application.
- Set:
- Name — e.g. WP ULike Social Login
- Authorized JavaScript origins —
https://yourdomain.com(match your site URL) - Authorized redirect URIs — copy from WP ULike (next step)
- Click Create and note the Client ID and Client Secret.
Step 3: Configure WP ULike
- Go to WP ULike → Settings → Social Logins.
- Enable Social Logins.
- Add a network and choose Google.
- Copy the Callback URL shown in settings — it looks like:
https://yourdomain.com/?ulp-api=auth&provider=Google
- Paste that exact URL into Google’s Authorized redirect URIs.
- Enter Client ID and Client Secret in WP ULike.
- Optional: enable Auto Display on login/signup forms, or use
[wp_ulike_pro_social_login]on a page or profile tab. - Save settings.
Always use the callback URL from your WP ULike settings — do not guess the provider name or query string.
Step 4: Test
- Open your login page in a private window.
- Click Google.
- Sign in with a Google account.
- Confirm you return to your site logged in.
Repeat once to verify consistency. Check the user profile shows expected name and email.
Troubleshooting
| Error | Fix |
|---|---|
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
Related articles
Continue with these guides
Did this article help?
Pick how you feel, add a note if you want, then hit Send. It takes two seconds and helps us improve this guide.