Google Photos

Using Google Photos got a little bit more difficult. To connect to the Google Photos API you need to create a new project in the Google Developer console.


For the free version there is a limit of 30 visible photos per album in the front end. Event Gallery Extended allows to show more than 30 photos per album.

Video - Setup Google Photos

English version:

German version:

Steps to create the Google API Project

Please check the videos above for the whole process. In summary, you need to go through those steps:

  1. Open the Google Developer Console (Google Developer Console) and sign in.
  2. Click the project selector in the top tool bar and create a new project
  3. Enable the Photos Library API. Click the Enable APIs and Services button, search for the Photos Library API, click the tile and hit the Enable button.
  4. Configure the consent screen: select external user type and create the screen. Add the app name and your domains. No need to select any scopes, but please add the email address of the user with the Google Photos albums. We will not validate this app, but you need to put it to production mode. This is fine, but it restricts the number of potential users. This does not matter, since you are the only user of this app. Everything else is handled in Event Gallery. Check the review page and go back to the dashboard.

    Figure 3.34. Google Photos Publish App

    google photos publish app

  5. Open the credentials view by clicking in the left menu. If you don’t see it, click on the GoogleAPIs-logo in the top tool bar.
  6. Now we need to create the credentials. Click the create credentials button and select OAuth client ID.
  7. The type needs to be web application. Add a name for the credentials. Now add the Authorized JavaScript origins. Add as many URLs as you need. Start with your main domain and add something like or Please note, that and are different origins! Then add your local test URLs as well. This can be something like https://localhost or If you don’t do this, you can’t use those credentials on your local test environment!
  8. Now we have the credentials and need to add them in the Event Gallery configuration
  9. Use the refresh token-button. Before you start, the program will tell you the redirect URL. Please add this to your OAuth 2.0-Client credentials. If you don’t do this, you’ll see a redirect_uri_mismatch error message.
Steps to configure Event Gallery
  1. First login to your backend and open the Google Photos Accounts-Section of Event Gallery. Hit the new-button. There you add your Google API Client ID and the Secret we collected in the previous step. After you entered the credentials, hit the save button.

    Figure 3.35. Google Photos Account Overview Page

    google photos config 1

    Figure 3.36. New Google Photos Account

    google photos config 2

  2. Now we need to configure the Refresh Token. Just click the Get Refresh Token button. A window will open. Click the Select your Google Account button. You will now switch to a Google window. You need to ignore the warning. Your API usage is not verified by Google so they warn you if a project tries to access photos. Go ahead and select your Google Account. The Refresh Token field is now filled in and you can save the configuration once again. If the Google window stays empty, please click the Select your Google Account button again without closing the empty Google window.

    Figure 3.37. Configure Refresh Token

    google photos config 3

    Figure 3.38. Expected security warning

    google photos config 3.1

  3. Done. You can start managing your Events/Albums now.

    Figure 3.39. Google Photos Account Page with the new account

    google photos config 4

Manage Event/Album
  1. On the Event edit page, you need to select the folder type Google Photos. An account selection drop-down and an album selector button will appear. Select the Google Photos Account you want to use and click it to see your Google Photos albums.

    Figure 3.40. Select Google Photos Folder Type

    google photos manage event 1

  2. A list of albums for the selected Google Photos Account will appear. Now select one of the albums.

    Figure 3.41. Select Album

    google photos manage event 2

  3. Don’t forget to publish this event and hit the save button and you’re done.

    Figure 3.42. Select Album

    google photos manage event 3


By default, the Google Photos API is limited to 10.000 requests per day. That might sound much, but it is not. Since every image URL in the response is valid for 60 minutes or less, Event Gallery needs to request album data multiple times per hour. Let us assume every 10 minutes. With ongoing traffic for 24 hours on your site, this is 144 requests per day. With 50 albums we’re already at 7.200. So keep an eye on the API usage. If you reach the limit, no images will appear until the next day.

I noted that you can verify your project by Google. If I briefly read through the API policy, I see, that you should not create a clone of Google Photos. Well, it depends on how one thinks about your site, but getting the verification might get tricky. If you have other experiences, please let me know.

The image URLs Google delivers are only valid for 60 minutes. The number of API requests is limited. For every shared or sold image, a separate request is necessary to get the latest image URL. This might trigger the API limits.

Figure 3.43. Monitor your project

google photos api monitoring

All prices include VAT. The gross price will vary depending on the selected shipping country.