danvratil / FBEventSync

Sync Facebook Events into your Android calendar
GNU General Public License v3.0
35 stars 7 forks source link

Support for recurring events #47

Open danvratil opened 6 years ago

danvratil commented 6 years ago

FB Pages can create recurring events on Facebook. This information is somewhat exported into the iCal, but not through RRULEs, instead, multiple instances seem to present in the iCal.

This needs a some more investigation and a testcase.

danvratil commented 5 years ago

Facebook creates one VEVENT for the base Event and then additional VEVENT for each recurrence that the user attends (has replied to).

We can deduce the relation of one VEVENT to another through their URL field: recurrence instances have an additional query parameter in the URL, but the base path refers to the base event.

Facebook allows users to have a different participation status for each recurrence, so we need to basically create a new event for each recurrence since we can have a bunch of recurrences in the tentative calendar and another few recurrences in the accepted calendar. We could create a single VEVENT in each calendar with respective RDATEs set, but that's kinda difficult to keep up-to-date and would likely be even more confusing as no relation between tentative and accepted recurrences would exist. Thus it might be better to simply pretend there's no relation between the recurrences at all.