Sunday, May 21, 2017

google calendar events don't show to fullcalendar localhost

I'm trying to display events from a google calendar in my local site I develop using laravel 5.4. I decided not to try and use a laravel library as I can't find many examples on this. Anyways, after setting up the calendar, the events I added in the google calendar don't show up.

This is my extremely basic code:

@extends('layouts.home')
@section('content')
<script type="text/javascript">
    $(document).ready(function() {
        $('#calendar').fullCalendar({
            googleCalendarApiKey: 'AIzaSyB2OIqOZ88NGTUiqj_y_YNFIthk9k2c4qQ',
            events: {
                googleCalendarId: 'mjd3mg13mecqeb3ltcc9n4fmcc@group.calendar.google.com',
                className: 'gcal-event',
                events: 'https://calendar.google.com/calendar/embed?src=mjd3mg13mecqeb3ltcc9n4fmcc%40group.calendar.google.com&ctz=Europe/Bucharest'
            }
        });
    });
</script>
<div id='calendar'></div>
@stop

This is my includes section:














This is what is rendered in the page. calendar

This is what I have on my google calendar: google-calendar

My google calendar is public.



via Ileana Profeanu

Advertisement