Closed karfau closed 5 years ago
I am reviewing your pull request and fixing some issues mainly due to the case that event does not necessarily have 'original_end' property. But seems good so far.
Can you tell me what is the purpose of date
and unpublish_date
in the facebook.event.page.md.twig
file ? Why they are just not original_start
and original_end
?
Great, haven't thought about the case of original_end
date not being set. (Isn't the parsing in the plugin setting it to the start date when it is not present?)
These fields are "special names" for pages in Grav:
date
is one way of sorting page collectionsunpublish_date
will hide the page after that time.If you want anything added/ documented/ cleared up from my side just tell me!
Since facebook events are no longer working anyways (at least when I last checked, I'll close this PR
This is my PR for #26, at least this is what worked for me.
I think there is room for improvement on many levels, but first wanted to hear your opinion.
Besides adding the functionality, I moved some code from
facebook.php
toclasses/FacebookEvents.php
to reuse code in bothfacebook.php
and the newcli/FetchEventsCommand.php
.Usage (after configuring page id and facebook credentials):
Best Christian