simonbengtsson / eventcal Goto Github PK
View Code? Open in Web Editor NEWFilter to only include attending and maybe facebook events in ical and google calendar
Home Page: http://eventcal.flown.io
License: MIT License
Filter to only include attending and maybe facebook events in ical and google calendar
Home Page: http://eventcal.flown.io
License: MIT License
Google Calendar allows to add an attachment to the events as links to Google Drive. That's very useful for concerts, where you can add the concert ticket into the Google Drive and attach it to the event
Currently your calendar is read-only so I cannot add attachments. To workaround the issue, I clone the event and add an attachment there. But I would prefer for this workaround to be avoided
Initially could not get the calendar to load. Would hit a 'cannot fetch URL' error in G-Cal. I did a bit of troubleshooting and attempted to add it to my subscribed calendars once again.
I received an error "cannot fetch URL" from Gmail.
I again attempted this but this time I used "copy link URL" in Chrome on the "Upcoming Events" link. Rest of the steps were the same. This time it synced. I ran a diff on the two urls. First side: clicking the link in chrome, second time: copying the source link from Chrome. Turns out that chrome strips a & from the key parameter on the query string. See the following:
webcal://www.facebook.com/ical/u.php?uid=12345&key=ABCDEFG
webcal://www.facebook.com/ical/u.php?uid=12345key=ABCDEFG
This affected the returned query string by stripping the == operator before &status.
In case this affects users in the future I suggest checking for the stripped & on the query string and correcting it automatically on the return URL.
Simon,
I found your service after a post you made on Quora. Ever since the konscript freedom service went down (after a Facebook API change), I have sorely needed this. There's an Android app that will sync filtered Facebook events with your gcal but only works on the given device, leaving the laptop's calendar empty of any FB events.
So a hearty thank you for hosting this service and big bonus points for sharing the code on github. I don't need to run my own service for now because the code you have it works great, and the service is working too. On that note, I think you have a marketable service here. It's interesting to me how hard it was to find this after some time and various google searches. If you publicize this a bit with a standalone (non-github) page describing your service, I think you actually have a product which you could charge users a couple bucks a year for, enough that would cover the hosting costs, I would think. (doesn't appear to be a big server hit). Just a thought!
Thanks again,
Shiraz
hi! first I want to say THANK YOU for EventCal - this tool is a godsend ever since Sunrise.am hit the fan! and double thanks for open sourcing it, I had no idea til today so it's awesome you have a form of community support here :)
My feed has been perfect thru 2019 & suddenly random "interested" events no longer show up in Google Calendar (where I've subscribed).
I've refreshed my feed in Google Calendar (Pixel 3a, Android 10), new events will show up in the feed (missing ones don't show up) & wondering how we can go about troubleshooting this issue?
Let me know how I can help :)
I copied the link from my facebook events link(upcoming events) and pasted it to input box #1 on the page http://eventcal.flown.io/, clicked on google calendar button and it was added to my google calendar but nothing is being displayed from my facebook events in my calendar. Is there any way we can fix this?
Everytime an event is cancelled, there is no option on Facebook to "opt out" from it, and therefore there is no way to remove the event from the calendar. Any idea how to solve this one?
Hello
There is no iCal-link in the new Facebook version. I assume that there isn't any possibility to sync Facebook events with your own Google Calendar, nowdays?
First of all: Thank you very much for this service. It works perfectly!
Just for your info: After looking for ages for a solution, your website seems to be the only way (without hosting a service myself) to sanitize Facebooks ical output to feed it back to Google Calendar.
Google's subscription feature has been broken for several months now because it fails parsing some input provided by the feed.
So whatever your service does in addition to filtering events, it's also able to sanitize faulty input.
This has been a pet peeve for me for a long time and I'm eternally grateful for your solution!
With your permission, I'd like to share this solution in some of the most visited threads dealing with this topic, so other people can profit as well.
I also suggest you add a donation or "buy me a beer" button :)
Would be nice to be able to choose which events should be filtered e.g. events I'm just 'interested'
When I go through and uncheck the maybe and/or going to the FB events, the events are still on my calendar.
Duplicates also seem to be created if I recheck Maybe or Going for a series of events.
As far as I see, it is unforunately not possible anymore to subscribe to Facebook events.
Do you know any alternative how to get my upcoming events to my local calendar?
Hi.
When I save [this] meeting as a ics file I get following content: (I shortened the content)
BEGIN:VCALENDAR
PRODID:-//Facebook//NONSGML Facebook Events V1.0//EN
X-WR-CALNAME:26. Fallig Open Air 2023
X-PUBLISHED-TTL:PT12H
X-ORIGINAL-URL:https://www.facebook.com/events/679544247113957/
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
BEGIN:VEVENT
DTSTAMP:20230317T114517Z
LAST-MODIFIED:20230317T114517Z
CREATED:20221122T143329Z
SEQUENCE:9925908
ORGANIZER;CN=Fallig Open Air \"Firlefanz Enkirch e.V.\":MAILTO:[email protected]
DTSTART:20230630T160000Z
DTEND:20230630T190000Z
UID:[email protected]
SUMMARY:26. Fallig Open Air 2023
LOCATION:Fallig Open-Air
URL:https://www.facebook.com/events/679544247113957/
DESCRIPTION:Das 26. Fallig Open Air findet am
30.06. und 01.07.2023 in Enkirch/M
[...]
DESERT ROCK KIDS\n• DAVE COLLIDE
\n• ROMANS NAILED IT\n\nhttps://ww
w.facebook.com/events/679544247113
957/
CLASS:PUBLIC
STATUS:CONFIRMED
PARTSTAT:NEEDS-ACTION
END:VEVENT
END:VCALENDAR
But when I get this event via eventcal I'll have this in mi ics file:
BEGIN:VEVENT
DTSTAMP:20230317T114517Z
LAST-MODIFIED:20230317T114517Z
CREATED:20221122T143329Z
SEQUENCE:9925908
ORGANIZER;CN="Fallig Open Air \Firlefanz Enkirch e.V.\":MAILTO:[email protected]
DTSTART:20230630T160000Z
DTEND:20230630T190000Z
UID:[email protected]
SUMMARY:26. Fallig Open Air 2023
LOCATION:Fallig Open-Air
URL:https://www.facebook.com/events/679544247113957/
DESCRIPTION:Das 26. Fallig Open Air findet am
30.06. und 01.07.2023 in Enkirch/M
[...]
DESERT ROCK KIDS\n• DAVE COLLIDE
\n• ROMANS NAILED IT\n\nhttps://ww
w.facebook.com/events/679544247113
957/
CLASS:PUBLIC
STATUS:CONFIRMED
PARTSTAT:TENTATIVE
END:VEVENT
With the wrong quoting on the ORGANIZER line, the event is not anymore valid and the whole file gets invalidated.
Do you see this issue or I'm the only one?
Thanks in Advance
Silvio
First of, thank you for this service!
As plain HTTP can be intercepted and changed without any problem, it would be beneficial if we could serve this over functional HTTPS.
As eventcal.flown.io does not have the correct certificate, I suppose you are not using LetsEncrypt?
Could you put this into a herokuapp or something like that? That would provide you with automatic, valid SSL certificates.
First--huge thanks! This is a super useful project. It has really saved me a bunch of times.
Do you know that it takes a while (maybe 12-24 hours) for a newly selected event to appear in one's calendar feed? Is this unavoidable without greatly increasing the server load required?
Using your service for months, and it's very helpful. Today I realized, that the events organized by me are not showing up in my google calendar (more than a day had passed). Other events are fine. Any ideas, similar problems?
The Facebook event calendar filter has been really useful. However, there seems to be a mismatch between the default timezone created in the output calendar vs the target user timezone. This leads to some confusion when copying events from the EventCal to another Google Calendar.
As an example:
A user creates a FB EventCal with this tool, which defaults the calendar to use UTC
This calendar is imported as a shared calendar in GCal. As a shared calendar, the user has no control of the default timezone.
Because the calendar is shared, the user has no explicit control over events; all event times are pulled directly from Facebook.
When an event is copied from the EventCal to a user's calendar (offering explicit control over event info), the default timezone is UTC, which shifts all times for the given event to UTC, rather than the target time zone.
A possible solution would be to allow users the opportunity to define the default timezone for their calendar when initially creating the filtered EventCal URL. This would then propagate forward into other calendars.
A challenge with this approach is a loss of flexibility for users that require multiple timezones.
More of a comment than an issue. I've had intermittent issues with my calendar taking forever to sync, so I did some searching to see where the issue arises. I don't think it's eventcal, I think it's Google, as discussed here: https://webapps.stackexchange.com/questions/6313/how-often-does-google-calendar-update-its-other-calendar-feeds/6315#6315?newreg=69daad6a24ac48c5b767d689de12ad4f
I tried out derekantrican's script as reported in his answer & it worked! I thought other eventcal users might find this useful. Thanks for all you do!
Facebook has an option called "Saved" when checking events. Basically this is a private version of the "Interested" option. As there are no way to private that you are interested in I was wondering if this is possible to implement, preferably to the website version?
I noticed events are not shown in Google Calendar anymore.
If I put into Google Calendar link from FB directly, it works. But when I put there link from eventcal, nothing works.
I would like to debug it, however I don't know how. Because I cannot fetch webcal://
schema and if I replace it with http
or https
it download the index page.
The title is self explanatory ;)
I've created a few calendars with this tool. Put them in Google Calendar, and they show up in the google calendar web app just fine. But when I look at them on my phone through the iphone google calendar phone app, the name of each calendar is "[some arabic looking characters] my name [some more arabic looking characters]"
I'm wondering if there's some metadata that the google calendar web app is looking at that isn't being properly configured?
The rest of the data in the calendar is totally fine.
Aloha,
quite happy that i found your script here. Thank you!
I was actually dealing with some other scripts but yours seams quite reliable.
Discovered a small bug though.
Button of the System Calendar should'nt open a new tab, so in line 119 you could do this:
window.open(url,"_self");
Then in line 149 we have:
var base = 'webcal://' + window.location.host + '?base64=true&calendar=';
Unfortunately that restricts eventcal to the root. If eventcal is placed in a directory the generated webcal-link is invalid.
Do you have an idea how we could integrate events of a public fanpage and limit it it to get only upcoming events?
The Graph would look like this:
https://graph.facebook.com/v2.9/17168992485/events?time_filter=upcoming&access_token=xxxyyyzzz
Of course a access_token is needed.
I guess its Facebook changes that made it not work anymore..
I had to reset my facebook calender link from your wonderfult eventcal site, before i got it working again.
But now the issue is that i only have the "attending" events showed.
Hi,
It appears at some point they have updated the Facebook events process so that you don't have an attending/maybe attending/can't go option for your own events. This seems to stop events I've created myself from showing up in the eventcal feed.
Not sure if you'll have time to look at it but would greatly appreciate it if you can!
BEGIN:VCALENDAR
PRODID:Eventcal
VERSION:2.0
BEGIN:VEVENT
ORGANIZER;CN=Test"Test:MAILTO:[email protected]
DTSTART:20160901T120000Z
DTEND:20160903T190000Z
SUMMARY:Test
DESCRIPTION:Test
END:VEVENT
END:VCALENDAR
Maybe has something to do with facebook removing the method from their "support page".
https://www.facebook.com/help/152652248136178
Hi,
Thanks a lot for building this! I've used Sunrise calendar for a long time, which had awesome Google calendar and Facebook events integration. Since they're pulling the plug I'm looking for alternatives, this seems great.
I got my 'attending' Facebook events to show up, but my 'maybe' events don't show, even though I selected it and it says status=ACCEPTED,TENTATIVE in the URL.
When I only select 'not responded to', I get all my 'maybe' events to show as well as my 'not responded to' events.
Is there anything I have to do differently? Thanks in advance!
iOS 14.4.2
When I try to manually add to my calendar subscriptions:
1.) it says “Cannot connect using SSL” (so I try without) then
2.) it says “Unable to verify account information.”
From your website, when I click the System Calendar button, it says
1.) “the connection to eventcal.flown.io is not secure- do you want to continue?” ( I do)
2.) then it says “could not subscribe to the calendar “/“ from eventcal.flown.io”
Calendar stopped working.
"There was an unexpected error with the request on subscribed calendars (error -1)."
Please advise!
I'm not sure why though, but they are in Spanish my calendar, but all of my settings in FB under language are set to English.
Hello,
Everything is working fine while adding calendar first time but they are not syncing when i reply to new events. I searched little bit about it. The reason seems that long description of events.
if not there is a problem with syncing. I am not able to see new events in my google calendar. I can only see the events from first import time
It worked smoothly for a long time but now it seems like facebook changed the way it works.
The description to get the url for upcoming events is not working anymore (right clicking impossible).
Also downloading an individual event and looking at the code doesn't reveal a uid & key.
Is it still working for you?
I am no longer seeing Tentative events in my Google Calendar. An event which is not showing up: https://www.facebook.com/events/586622009017838.
Is there a way for the filter at eventcal.flown.io to also show past attended events so we can see a history in our calendar? Cheers Daniel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.