# Embed Google Calendar plugin

**URL:** https://meta.discourse.org/t/embed-google-calendar-plugin/21672
**Category:** Plugin
**Tags:** broken
**Created:** [October 30, 2014, 11:50am UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672 "2014-10-30T11:50:35Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![DavidGNavas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidgnavas/32/68313_2.png) [@DavidGNavas](https://meta.discourse.org/u/DavidGNavas)
#### Post date: [October 30, 2014, 11:50am UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/1 "2014-10-30T11:50:35Z")

</div>

Continuing the discussion from [Failed to bootstrap with Google Calendar plugin](https://meta.discourse.org/t/failed-to-bootstrap-with-google-calendar-plugin/16647/3):

Two months ago, I post [a topic asking for a developer](https://meta.discourse.org/t/paid-need-a-developer-for-several-discourse-projects-customization/19418) to do some customizations on Discourse for my organization, [Territorio creativo](http://www.territoriocreativo.es/).

Thanks to [Vairix](http://www.vairix.com/), an organization specialized on Rails who have helped us with this, we can now share this customizations.

The first one, it’s **simple a plugin that allows to embed a Google Calendar in a post** :

[https://github.com/tcreativo/plugin\_discourse\_calendar](https://github.com/tcreativo/plugin_discourse_calendar)

Screenshot:

 ![](https://global.discourse-cdn.com/meta/original/3X/d/f/df646a7fbb35d8d5d6338d28ead65d148c639202.png)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [November 1, 2014, 9:46pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/2 "2014-11-01T21:46:29Z")

</div>

Looking at the code, I think this would be best upstreamed to the onebox code, so that all the sites can use it.

[https://github.com/discourse/onebox](https://github.com/discourse/onebox)

Though.. The url matcher might need some tightening.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 6, 2014, 4:20pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/3 "2014-11-06T16:20:23Z")

</div>

so what is the status of this? i would rather not install another plugin but do like the idea of being able to embed google calendars in topics. it would be very useful as a team/editorial calendar on our community.

---

<div class="post-metadata">

### Author: ![Moter8](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moter8/32/120941_2.png) [@Moter8](https://meta.discourse.org/u/Moter8)
#### Post date: [November 20, 2014, 6:53pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/4 "2014-11-20T18:53:22Z")

</div>

If @DavidGNavas submits a Pull Request to the onebox repo it could get added, but well, not sure if he wants to do that.

I’d be up to submit it too, but I’d rather let him do that.

---

<div class="post-metadata">

### Author: ![DavidGNavas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidgnavas/32/68313_2.png) [@DavidGNavas](https://meta.discourse.org/u/DavidGNavas)
#### Post date: [November 21, 2014, 12:03am UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/5 "2014-11-21T00:03:15Z")

</div>

The developer of this plugin was @Daniel_Fernandez_Pes from Vairix, perhaps he wants to submit the PR, I will notificate him. But, if he doesn’t mind, you are free to do it 😄

---

<div class="post-metadata">

### Author: ![Daniel\_Fernandez\_Pes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_fernandez_pes/32/116615_2.png) [@Daniel\_Fernandez\_Pes](https://meta.discourse.org/u/Daniel_Fernandez_Pes)
#### Post date: [November 24, 2014, 8:15pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/6 "2014-11-24T20:15:39Z")

</div>

I already send a PR to implemente this feature.

[https://github.com/discourse/onebox/pull/255](https://github.com/discourse/onebox/pull/255)

Thanks for notifying me!!

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [November 24, 2014, 8:53pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/7 "2014-11-24T20:53:00Z")

</div>

nice! but what you’ve done here seems to be about spreadsheets and not calendar? is it possible to also onebox a calendar using a URL like this:

> **[Google Calendar - Sign in to Access & Edit Your Schedule](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fcalendar.google.com%2Fcalendar%2Fnewembed%3Fsrc%3Deditors%40kabissa.org%26ctz%3DAmerica%2FNew_York&dsh=S974844454%3A1780311727553611&followup=https%3A%2F%2Fcalendar.google.com%2Fcalendar%2Fnewembed%3Fsrc%3Deditors%40kabissa.org%26ctz%3DAmerica%2FNew_York&passive=1209600&service=cl&flowName=GlifWebSignIn&flowEntry=ServiceLogin&ifkv=AWa2Pavo501tM8pgpNtkHvRvF61Ps7VeEA116CJe6N8iu3A9qsBIDg3wyHSQj3ZCQaAnuBhXqDS-qQ)**
>
> Access Google Calendar with a Google account (for personal use) or Google Workspace account (for business use).

---

<div class="post-metadata">

### Author: ![Daniel\_Fernandez\_Pes](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/daniel_fernandez_pes/32/116615_2.png) [@Daniel\_Fernandez\_Pes](https://meta.discourse.org/u/Daniel_Fernandez_Pes)
#### Post date: [November 24, 2014, 9:34pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/8 "2014-11-24T21:34:09Z")

</div>

You are right!! My mistake! Here is the right PR!!

[https://github.com/discourse/onebox/pull/256](https://github.com/discourse/onebox/pull/256)

---

<div class="post-metadata">

### Author: ![molly\_cushing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/molly_cushing/32/88775_2.png) [@molly\_cushing](https://meta.discourse.org/u/molly_cushing)
#### Post date: [March 1, 2015, 8:33pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/9 "2015-03-01T20:33:14Z")

</div>

While the embed works on here, any time I try to embed a Calendar on [my forum](http://forums.ghostvolta.com/), it doesn’t work.

I’m on the latest version of Discourse and OneBox is included with Discourse automatically now, right? So there’s nothing I really need to add is there?

The plugins I have currently:

 ![](https://global.discourse-cdn.com/meta/original/3X/1/8/18c70d12108605861ff20826438e334d4c1e9093.jpg) 

Any insight would be greatly appreciated!

---

<div class="post-metadata">

### Author: ![DavidGNavas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidgnavas/32/68313_2.png) [@DavidGNavas](https://meta.discourse.org/u/DavidGNavas)
#### Post date: [March 2, 2015, 10:01pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/10 "2015-03-02T22:01:59Z")

</div>

Sorry for not contribute much to the conversation, but we have the same plugins installed (plus [details](https://github.com/discourse/discourse-details)) on a latest version docker instance and it works perfectly 😕

---

<div class="post-metadata">

### Author: ![molly\_cushing](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/molly_cushing/32/88775_2.png) [@molly\_cushing](https://meta.discourse.org/u/molly_cushing)
#### Post date: [March 3, 2015, 9:16pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/11 "2015-03-03T21:16:02Z")

</div>

I’m not sure if it was the Discourse update or that I removed “[google.com](http://google.com)” from our OneBox list, but they embed now!

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [June 2, 2015, 12:43pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/12 "2015-06-02T12:43:00Z")

</div>

Hmm. I’m just trying this out, and I only get an empty calendar. The exact same code in an iframe on wordpress works just fine. Any idea why?

ie:

> **[Google Calendar - Sign in to Access & Edit Your Schedule](https://accounts.google.com/v3/signin/identifier?continue=https%3A%2F%2Fcalendar.google.com%2Fcalendar%2Fnewembed%3FshowTitle%3D0%26amp%3BshowNav%3D0%26amp%3BshowDate%3D0%26amp%3BshowPrint%3D0%26amp%3BshowTabs%3D0%26amp%3BshowCalendars%3D0%26amp%3BshowTz%3D0%26amp%3Bmode%3DAGENDA%26amp%3Bheight%3D400%26amp%3Bwkst%3D2%26amp%3Bbgcolor%3D%2523FFFFFF%26amp%3Bsrc%3D6hnjp743rq7omi2qfr3fa873ug%40group.calendar.google.com%26amp%3Bcolor%3D%25232F6309%26amp%3Bctz%3DEurope%2FLondon&dsh=S253705313%3A1780303882862740&followup=https%3A%2F%2Fcalendar.google.com%2Fcalendar%2Fnewembed%3FshowTitle%3D0%26amp%3BshowNav%3D0%26amp%3BshowDate%3D0%26amp%3BshowPrint%3D0%26amp%3BshowTabs%3D0%26amp%3BshowCalendars%3D0%26amp%3BshowTz%3D0%26amp%3Bmode%3DAGENDA%26amp%3Bheight%3D400%26amp%3Bwkst%3D2%26amp%3Bbgcolor%3D%2523FFFFFF%26amp%3Bsrc%3D6hnjp743rq7omi2qfr3fa873ug%40group.calendar.google.com%26amp%3Bcolor%3D%25232F6309%26amp%3Bctz%3DEurope%2FLondon&passive=1209600&service=cl&flowName=GlifWebSignIn&flowEntry=ServiceLogin&ifkv=AWa2Pauxq_Y7AGFwMheann93JJOnoHl1y142Qif_ENkt6VjemsT1JbPrIGiHFk5hwGeial79NpQ8)**
>
> Access Google Calendar with a Google account (for personal use) or Google Workspace account (for business use).

(note how the dropdown at top right is empty)

vs.

[http://southlondonmakerspace.org/](http://southlondonmakerspace.org/) (3rd from top in the LH column)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [June 2, 2015, 10:51pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/13 "2015-06-02T22:51:02Z")

</div>

Here’s the generated HTML:

```
<iframe src="https://www.google.com/calendar/embed?showTitle=0&amp;rm=minimal" style="border: 0" width="695" height="521" frameborder="0" scrolling="no"></iframe>

```

Looks like some of the parameters are getting dropped.

---

<div class="post-metadata">

### Author: ![Tom\_Newsom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tom_newsom/32/115981_2.png) [@Tom\_Newsom](https://meta.discourse.org/u/Tom_Newsom)
#### Post date: [July 21, 2015, 11:34am UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/14 "2015-07-21T11:34:32Z")

</div>

Found that the embed only works if you take the plain URL from the “Embed This Calendar” box in Gcal settings

 ![](https://global.discourse-cdn.com/meta/original/3X/e/e/eeb26d5f52e32957d36924746ebc0b7b5c59b11c.png) 

If you click on “Customize etc.” and paste the long URL with all the parameters separated with `&amp;` then the important bit (src=6hnjp743blahblahblah) doesn’t make it through.

 ![](https://global.discourse-cdn.com/meta/original/3X/2/3/2332a7f270318f644333f42374d42596ff7568e2.png) 

I am not a coder so I don’t have the first clue about how to a)track down this issue in the source or b)submit a pull request to fix it, but hopefully this helps someone else with the same issue!

---

<div class="post-metadata">

### Author: ![MiguelAngelLV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/miguelangellv/32/121518_2.png) [@MiguelAngelLV](https://meta.discourse.org/u/MiguelAngelLV)
#### Post date: [September 2, 2015, 4:11pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/15 "2015-09-02T16:11:10Z")

</div>

Any way to set agenda mode as default?

---

<div class="post-metadata">

### Author: ![Swang007](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/swang007/32/46657_2.png) [@Swang007](https://meta.discourse.org/u/Swang007)
#### Post date: [September 7, 2015, 3:50am UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/16 "2015-09-07T03:50:27Z")

</div>

> [@Tom\_Newsom](#):
>
> Found that the embed only works if you take the plain URL from the “Embed This Calendar” box in Gcal settings
> 
> ![](https://global.discourse-cdn.com/meta/original/3X/e/e/eeb26d5f52e32957d36924746ebc0b7b5c59b11c.png) 
> 
> If you click on “Customize etc.” and paste the long URL with all the parameters separated with `&amp;` then the important bit (src=6hnjp743blahblahblah) doesn’t make it through.
> 
> ![](https://global.discourse-cdn.com/meta/original/3X/2/3/2332a7f270318f644333f42374d42596ff7568e2.png) 
> 
> I am not a coder so I don’t have the first clue about how to a)track down this issue in the source or b)submit a pull request to fix it, but hopefully this helps someone else with the same issue!

Can this be addressed again? We’d like to embed a Google Calendar into a topic, but we’d like to be able to use the customizable code instead of

> [@Tom\_Newsom](#):
>
> the plain URL from the “Embed This Calendar” box in Gcal settings

---

<div class="post-metadata">

### Author: ![Ryan\_H](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryan_h/32/54096_2.png) [@Ryan\_H](https://meta.discourse.org/u/Ryan_H)
#### Post date: [March 29, 2016, 1:07am UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/17 "2016-03-29T01:07:02Z")

</div>

When you go to generate your embed code, just make all of your custom modifications and then look at the iframe tag that’s generated. take everything in the source attribute.

`<iframe src="http://some-crazy-url-with-all-the-styles-that-i-want">`

you want to grab everthing between the quotation marks after `src=`

---

<div class="post-metadata">

### Author: ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)
#### Post date: [January 30, 2017, 9:06pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/18 "2017-01-30T21:06:05Z")

</div>

Hi, I’ve installed the plugin, and I tried writing the urls google calendar presented me, but nothing happened.

 ![](https://global.discourse-cdn.com/meta/original/3X/1/e/1ea94e861ae581f85aeadf1d677286c5abc6f033.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/5/9/595819a56082f9fac90b350f1ad036586d4d78ce.png)

Could you please tell me Why?

@tobiaseigen @Daniel_Fernandez_Pes @Swang007

---

<div class="post-metadata">

### Author: ![ewanly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ewanly/32/62854_2.png) [@ewanly](https://meta.discourse.org/u/ewanly)
#### Post date: [January 31, 2017, 10:15pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/19 "2017-01-31T22:15:15Z")

</div>

Google Calendar & Spreadsheet supposed to work now with Onebox without the need to install an extra plugin. Right?

I’d tried to include Google Calendar but I couldn’t succeed. Could anybody confirm that it’s working and how please?

---

<div class="post-metadata">

### Author: ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)
#### Post date: [February 4, 2017, 10:16pm UTC](https://meta.discourse.org/t/embed-google-calendar-plugin/21672/20 "2017-02-04T22:16:35Z")

</div>

What do you mean? Which plugin? How can it works perfectly?

So now, how to achieve the goal of enbeding the google calendar in the Discourse?

[Next page](https://meta.discourse.org/t/embed-google-calendar-plugin/21672.md?page=2)
