Help Center

Google Calendar Sync

Google calendar sync will allow for all new bookings created in the plugin to be copied to your Google calendar. When Google calendar sync is enabled, all primary info will be copied from the Bookly calendar to Google calendar, including custom fields data.

With that synchronization enabled, you will also be able to set up the synchronization of individual team members' calendars from Bookly to their Google calendars.

If needed, you can also make sure that Bookly fetches blocked time slots from your Google calendar. Those time slots will not be suggested to the customer during the booking process.

We recommend that you limit the number of fetched events related to this feature as too many events in Google calendar may lead to a lack of memory in PHP when Bookly tries to fetch all events. 

 

Setup

Follow these steps to perform the synchronization:

 

Open the Settings tab on the Bookly dashboard and select the Google Calendar sub tab. Insert your Client ID and Client secret.

To find your client ID and client secret, do the following:

1.   Go to the Google Developers Console;

2.   Select a project or create a new one;

3.   Choose Calendar API from the list and make sure it's enabled;

4.   You will then be asked to fill in your credentials via a button, but we recommend that you do it from the sidebar on the left: click on Credentials, then 'Create Credentials' on the main screen, and choose 'OAuth client ID' from the menu:

5.   You will then be asked to go to the Consent Screen - do that, and fill in the project's name. Then go back to Credentials;

6.   Back in the Credentials tab, choose Web application and fill in the details:
for Authorized redirect URIs, enter the Redirect URI that you’ll find in Bookly’s Settings,
for Authorized JavaScript origins - just delete the link.
Now click on 'Create';

7.   Look for the Client ID and Client secret, in the recently created Client ID, in the table associated with each of your credentials and copy them into Bookly;

8.   Go to Staff Members, select one staff member, and click on "Connect" button, which is located in the lower part of the page.

                   

 

The following video explains how to find the Google Calendar ID:

https://www.youtube.com/watch?v=m_ph_hYT_SY

Finally, log in to your Google account and give the permission for plugin to access your Google Calendar.

 

For current users, if experiencing syncing issues after adding new staff members:

Go to Bookly Settings > Google Calendar > Redirect URI. Copy the updated link and paste it in your Google API Console > Credentials > Web Application > Authorized Redirect URIs.

You did it in the past, and as the URI may change with regular updates of the plugin, you will occasionally need to tell Google API what new URI to authorize.

Doing this will most likely solve the sync issue. If it persists, please let us know at support@ladela.com.

Have more questions? Submit a request

32 Comments

  • Avatar
    ron dykes

    If you create an event in google calendar will the email and sms notifications still work?

  • Avatar
    Denis

    In case you create an event in google calendar - notifications are not being sent for this event.

  • Avatar
    Monique Smit

    When I want to connect an employee to the calendar I get the Error message:

    Error: invalid_client

    The OAuth client was not found.
    Request Details

    access_type=offline
    approval_prompt=force
    scope=https://www.googleapis.com/auth/calendar
    response_type=code

  • Avatar
    Marie Ollu

    When I try to Sync with Google Calendar I get an error message in Bookly:

    Error fetching OAuth2 access token, message: 'invalid_client'

    I checked my client ID and client secret and everything is ok... Do you have an idea?

     

    Thank you!

    Edited by Marie Ollu
  • Avatar
    Denis

    Feel free to send us an email to support@ladela.com and we'll assist you with this matter.

  • Avatar
    Mark Cross

    Product feature. If you have diary items in your Google Calendar - they DO NOT appear to show in the internal Bookly Calendar within WordPress.

    However when the bookly availability customer facing form is shown via the WordPress site IT DOES remove slots already in the Google Calendar which have not been booked out via bookly.

    It would be nicest to have the best of both worlds have a toggle option on this page to "Show All Google Calendar Items"

    Although it could show an employee's private life, the page still needs to prevent you from overbooking on top of a google calendar. Which at present I think it will allow.

    Cheers Mark

    Edited by Mark Cross
  • Avatar
    Marijus Planciunas

    Hi guys, nice plugin! Question: is it possible to add events to Google Calendar, which will be automatically imported as appointments to this system?
    Just trying to understand, is it required to login into WP for adding phone customers, or can it be done by purely managing barber's calendar events.

  • Avatar
    Kevin Karr

    Hi all,

    Its not clear in the instructions for which user account to set up the Google API at ?

    So far I've created an entirely new Gmail account and API is configured as above. So the question is, is the setup of the API per every staff user's account or just on a primary company gmail calendar which then every staff can be linked to by just logging into and accepting the apps calendar acceptance ?

    So far I've not had any luck getting this work yet..

    Any help here would be appreciated.

    Edited by Kevin Karr
  • Avatar
    Nicolo

    Hi Bookly,

    Can I please clarify that 2way sync will work for team members calendars also. For example if a team member has an appointment entered manually into their google calender, that time slot will no longer be available via the plugin (in addition to plugin appointments being sync'd to the team members cal).

    Thanks in advance for the clarification, the below excerpt suggests it may only be available on the main calendar.

    "With that synchronization enabled, you will also be able to set up the synchronization of individual team members' calendars from Bookly to their Google calendars.

    If needed, you can also make sure that Bookly fetches blocked time slots from your Google calendar. Those time slots will not be suggested to the customer during the booking process."

  • Avatar
    Denis

    Hi,

    You need to set the API only for one account, then the rest of the staff can connect by themselves with their gmail accounts.

    It's available for staff members, they can connect their calendars to Bookly to use it to block out random time when they're not available for booking.

  • Avatar
    T Horejsi

    Hi..
    Everything is set correctly but it does not sync :/

    I mean just it does not show the bookings made by clients in Google calendar

    Edited by T Horejsi
  • Avatar
    Denis

    Please check if the copied API keys (client ID and secret) are correct and they don't contain any whitespaces. Besides that you can see what errors are being displayed in the staff members menu.

  • Avatar
    T Horejsi

    Sorry, there seems like everything set OK. Probably it took a while than it was synced.
    And now I can see that there are some appointments visible but not all.
    But now it is shame that I cannot see any appointments most of appointments booked before and after - just I can see two appointments in total only.
    Well, now after testing it is syncing the new made bookings only but it does not check the old bookings.. I would suggest to check why it does not sync the old bookings made before calendar setting..

  • Avatar
    Denis

    The synchronization will start from the moment you set it up, it won't sync old appointments.

  • Avatar
    Robin Potter

    I reimplemented version 8.0 after trying version 12.1. Version 8.0 stopped syncing information to the staff members google calendar and Version 12.1 will not save staff members.

    Please advise on how to get sync with Google with calendar again with version 8. I have gone through all the steps and still nothing is working.

  • Avatar
    Denis

    Hi Robin, you’ll need to run this command for your database: ALTER TABLE `wp_ab_staff` CHANGE COLUMN `google_data` `google_data` TEXT. After that update the Redirect URI in google developers console, and for the final step you’ll need to disconnect and connect back all staff members.

  • Avatar
    Robin Potter

    Thanks Denis! That's was the best help I've gotten over the weekend.

  • Avatar
    Tawab

    When I try to Sync with Google Calendar I get an error message in Bookly:

    Error fetching OAuth2 access token, message: 'invalid_client'

    I checked my client ID and client secret and everything is ok... Do you have an idea?
    or is there any youtube tutorial for the google setting in Bookly?

    Thank you!

  • Avatar
    Denis

    Hi Tawab, you should check the copied API keys, they are either not correct or contain whitespaces.

  • Avatar
    Tawab

    Thanks Denis! the problem is solved.

  • Avatar
    Alexander Reschke

    Hi,

    after I've connected Bookly with Google Calendar Bookly shows "Google Calendar: Could not json decode the token" and the box with the different calendars is empty.
    I compared the keys and URL and everything seems to be fine. How can I fix that?

    Thanks,
    Alex

  • Avatar
    Denis

    Hi Alex, please follow these steps to solve this error:
    1) Update Bookly to the most recent release – v 12.1;
    2) Update the Redirect URI in google developers console;
    3) Disconnect all staff members and connect them back.

  • Avatar
    Alexander Reschke

    Hi Denis, thank you for your quick response!
    I tried all the steps but unfortunately it didn't worked.
    Are there other solutions?
    Thanks
    Alex

  • Avatar
    Denis

    Hi Alex, in case it didn't help you, please send us an email to support@ladela.com with this inquiry and the purchase code to look into this matter.

  • Avatar
    Sean Crown

    I set up my Bookly calendar and enabled 2 way sync with my google
    calendar. When I create an appointment on the Bookly calendar it shows up on
    Google, however, Bookly is not fetching events from Google Calendar and
    removing corresponding time slots before displaying the second step of
    the booking form. Please help.

  • Avatar
    Denis

    Hi Sean, try to change this setting: limit number of fetched events - for a bigger value like 500 events, if the behavior will persist then please send us an email to support@ladela.com with this inquiry.

  • Avatar
    cesar

    Hello
    I am trying to synchronize the calendar api and gives me this error, could you help me, thanks
    Google Calendar: Error refreshing the OAuth2 token, message: '{ "error" : "unauthorized_client" }'

  • Avatar
    Denis

    Hi, you should check the copied API keys, they are either not correct or contain whitespaces.

  • Avatar
    cesar

    Hello I can not do it

    Could you help me with support to make this installation of the calendar?

    I wait for your news thanks

  • Avatar
    Denis

    Yes, please send this inquiry and the purchase code to support@ladela.com .

Please sign in to leave a comment.
Powered by Zendesk