Create a Google OAuth Client ID and Secret
To enable Google Photos cloud import in Square Orb, you need to create an OAuth 2.0 client in the Google Cloud Console.
-
Create a Project:
-
Navigate to the Google Cloud Console.
-
Click the project dropdown at the top and select New Project.
-
Give your project a name (e.g., “Square Orb Gallery Integration”) and click Create.
-
-
Enable the Photos Picker API:
-
Navigate to APIs & Services > Library.
-
Search for Photos Picker API and click Enable.
-
-
Configure the OAuth Consent Screen:
-
In the sidebar, go to APIs & Services > OAuth consent screen.
-
Select External and click Create.
-
Fill in the App name (e.g., “Square Orb Gallery”), User support email, and Developer contact email. Click Save and Continue.
-
In the Scopes section, click Save and Continue.
-
Essential Step — Test Users: In the Test users section, click + ADD USERS and enter the Gmail or Google account address that owns the Google Photos you want to access. Click Save and Continue. (Because your project is in Testing status, Google strictly blocks login unless your account is registered as a Test User).
-
-
Create Credentials:
-
Go to APIs & Services > Credentials.
-
Click Create Credentials and select OAuth client ID.
-
Select Web application as the application type.
-
Under Authorized redirect URIs, click Add URI.
-
Enter the exact redirect URI displayed under Square Orb > Authentication in your WordPress dashboard (e.g.,
https://yourdomain.com/wp-admin/admin.php?page=square-orb). -
Click Create. Google will display your Client ID and Client Secret.
-
-
Connect in WordPress:
-
Return to Square Orb > Authentication in your WordPress dashboard.
-
Paste the Client ID and Client Secret into their respective fields.
-
Click Save Google Credentials first.
-
Once saved, click the Connect to Google Photos button and approve access in the Google consent dialog.
-