How to synchronize RSEvents!Pro with Google Calendar

In this tutorial we will explain how you can import your Google Calendar events into RSEvents!Pro and how to get your keys required in this synchronization.

Important:

You'll need at least RSEvents!Pro version 1.8.19 (changelog), otherwise, updating your extension can be done as instructed here.

Steps you need to take:

1. Access Google APIs Console.

2. Login using your Google account and Create a new Project.

3. Add a project name and click on the "Create" button (wait a few moments after you click the create button to load your project, otherwise you can manually select it).

4. From APIs & auth section, select APIs.

5. Enable both the "Calendar API" and the "Contacts API" . Simply click on each and press the "Enable API" button.

6. From APIs & auth section, select Credentials.

7. Click on the "Create new Client ID" button .

8. Have the "Web application" selected and click on the "Configure consent screen" button.

9. Add a 'Product name' (this can be anything, for example RSEvents!Pro synchronization) and click on the Save button.

10. Within 'Authorized JavaScript origins' add your website (examples):

http://example.com

https://www.rsjoomla.com

- if you're testing this on localhost:

http://localhost

11. Within 'Authorized redirect URIs' add the following (examples, use https:// if you're using a secure connection):

http://myWebsite.com/administrator/index.php?option=com_rseventspro&task=settings.google

- if you're testing this on localhost:

http://localhost/myJoomlaSite/administrator/index.php?option=com_rseventspro&task=settings.google

Important:

The links themselves have to be precisely added. For example, if you're accessing the website using www. or without www., you'll have to specify this as well. Examples:


http://www.myWebsite.com/administrator/index.php?option=com_rseventspro&task=settings.google

http://myWebsite.com/administrator/index.php?option=com_rseventspro&task=settings.google

12. Click on the "Create Client ID" button.

13. Your "Client ID" and the "Client secret" keys will be generated (these will be used within your RSEvents!Pro configuration).

14. Navigate to backend > Components > RSEvents!Pro > Settings > Synchronization.

15. Setup your Google Calendar configuration:

  • Google Client ID: this would be the Client ID key you've just generated (notice above picture).
  • Google Secret: your Google generated secret key (notice above picture).
  • Event category: select the category in which the events will be imported to.
  • Event location: you can either select a predefined location or let the import tool create new locations based on your Google events.

16. Save your configuration using the top button (your settings have to be saved first).

17. After the page refreshes, the "Synchronize" button will appear and can be clicked.

18. You will be redirected to Google to allow this application to access your calendar data .

If everything is setup correctly a confirmation message with the number of events imported will appear.

Notice:

In case you're receiving an "No events were imported during the synchronization" error message, then most likely your events have already been imported from a previous process (you can check this by comparing your RSEvents!Pro events with the ones from your Google Calendar).

Synchronize RSEvents!Pro automatically with Google Calendar/Facebook

In order to synchronize RSEvents!Pro with Google Calendar or Facebook automatically, a server side Cron job is required. This can be configured on your cPanel server and add a new Cron job with the following command:

lynx "http://www.myWebsite.com/index.php?option=com_rseventspro&task=autosync"

In case this doesn't work, use the following command:

wget -O /dev/null "http://www.myWebsite.com/index.php?option=com_rseventspro&task=autosync"


2 persons found this article helpful.


Was this article helpful?

Yes No
Sorry about that

You Should Also Read

How to create recurring events

How to allow RSEvents!Pro send event invites to your Gmail contacts

How to change the event editing calendar start day