Google Integration
Sync your Google Contacts, Calendar, and Tasks with BlackBook. This is optional - BlackBook works great without it.
What Gets Synced
- 📇 Contacts - Import and sync with Google Contacts
- 📅 Calendar - View Google Calendar events
- ✅ Tasks - Sync with Google Tasks
- 📧 Gmail - View recent emails with contacts
Setup Overview
Google integration requires creating OAuth credentials in Google Cloud Console. This is a one-time setup that takes about 10 minutes.
Why OAuth? BlackBook uses OAuth so your Google password is never stored. You authorize BlackBook directly through Google's secure login.
Step 1: Create Google Cloud Project
- Go to console.cloud.google.com
- Sign in with your Google account
- Click the project dropdown (top left) → "New Project"
- Name it "BlackBook" or similar
- Click "Create"
Step 2: Enable APIs
- Go to APIs & Services → Library
- Search for and enable each of these:
- Google People API (for Contacts)
- Google Calendar API
- Google Tasks API
- Gmail API
- Click "Enable" for each API
Step 3: Configure OAuth Consent Screen
- Go to APIs & Services → OAuth consent screen
- Select "External" user type → Create
- Fill in:
- App name: "BlackBook"
- User support email: Your email
- Developer contact: Your email
- Click "Save and Continue"
- On Scopes page, click "Add or Remove Scopes"
- Add these scopes:
https://www.googleapis.com/auth/contacts
https://www.googleapis.com/auth/calendar.readonly
https://www.googleapis.com/auth/tasks
https://www.googleapis.com/auth/gmail.readonly
- Save and Continue through remaining steps
Step 4: Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click "Create Credentials" → "OAuth client ID"
- Application type: "Web application"
- Name: "BlackBook Desktop"
- Add Authorized redirect URIs:
http://localhost:8000/auth/google/callback
http://localhost:51820/auth/google/callback
- Click "Create"
- Copy your Client ID and Client Secret
Save these! You'll need the Client ID and Client Secret for BlackBook setup.
Step 5: Add Test Users (Important!)
While your app is in "Testing" mode, only authorized test users can sign in.
- Go to OAuth consent screen
- Scroll to "Test users" section
- Click "Add Users"
- Add your Google email address
- Save
Step 6: Configure BlackBook
- Open BlackBook Settings
- Go to "Google Integration"
- Enter your Client ID and Client Secret
- Click "Save"
- Click "Connect Google Account"
- Sign in with your Google account
- Grant the requested permissions
Troubleshooting
"Access blocked" error
Make sure your email is added as a test user in the OAuth consent screen.
"Redirect URI mismatch"
Verify the redirect URIs in Google Cloud Console match exactly:
http://localhost:8000/auth/google/callbackhttp://localhost:51820/auth/google/callback
"App not verified" warning
This is normal for personal projects. Click "Advanced" → "Go to BlackBook (unsafe)" to proceed. This warning appears because the app isn't published publicly.
Multiple Google Accounts
BlackBook supports connecting multiple Google accounts. Each account syncs separately, and you can choose which contacts/calendars to display.