Home › Forums › Calendar Products › Event Aggregator › Automatic import Facebook events to events
- This topic has 13 replies, 2 voices, and was last updated 11 years, 1 month ago by
Brian.
-
AuthorPosts
-
February 7, 2015 at 1:31 pm #940747
David M.
ParticipantHi there,
I have another question concerning import. So i’ve setup an automatic import, which imports all facebook events.
Afterwards i still need a manual action to import these FB events as “real” displayed events.Is there a possibility to automate this proces?
Steps:
1. settings – setup a few FB pages (one time action)
2. setup cron job, which imports fb events (one time action)
3. Go to events > import:facebook (manual action)
4. I have to select the events i want to import + click import button (manual action)
5. FB Events are being added to the events pages.To make a long story short, i would love to automate steps 3->5 and avoid all manual action. Is this possible?
So the cronjob should handle everything and just import all events from FB -> pages, without any manual action.Best regards,
DavidFebruary 9, 2015 at 9:01 am #940986Brian
MemberHi,
Sorry for the issues you are having. I can help troubleshoot them with you.
So Steps 3 to 5 should already be Automatic.
How many different Pages are you importing from? (can you provide the ids in a private reply?)
Do you have the WordPress Cron Disabled?
What is the setting for the Frequency for importing events?
Let me know about those 3 and we can go from there.
Thanks
February 9, 2015 at 12:24 pm #941084David M.
ParticipantThis reply is private.
February 9, 2015 at 12:55 pm #941109Brian
MemberOk I think the issue is your server is timing out and not getting to all the Events.
Can you increase your max_execution_time and default_socket_timeout settings for php?
As well as can you check with your host to see if you run a true cron task instead of a simulated cron task, which can timeout.
We are also working on making the process more efficient in the next release, but it still a resource intensive process when checking and importing so many events so there will be a limit on what the plugin can import.
Let me know about the php settings and see if that helps.
Thanks
February 10, 2015 at 12:54 am #941225David M.
ParticipantHello,
I’ve updated default_socket_timeout = 600 and max exxecution to 3000 (was 300).
Concerning cronjob, which process do i have to trigger?Best,
DavidFebruary 10, 2015 at 4:54 am #941254David M.
ParticipantHi, found it already
/wp-cron.php?doing_wp_cron
I hope this will resolve my issue, i’ll get back on that.
Best,
DFebruary 10, 2015 at 7:17 am #941296Brian
MemberOk let us know.
Thanks
February 10, 2015 at 8:36 am #941332David M.
ParticipantHi Brian,
Well, i’ve setup a real cronjob and events are being saved, so far for the good news :-).
The “bad” news is that only 2 events are being saved every hour, any idea why this is happening?
There are a lot more events in the “waiting line”.
Thx,
DFebruary 10, 2015 at 1:12 pm #941437Brian
MemberThat is strange. It is such a low number to import and then stop.
It still could be the amount of events from all those pages is causing the issue.
I tried to load all the Page IDs and it would not even load the import page for me until I removed half of them.
So as a test if you remove half of the Page IDs does it improve the import?
February 11, 2015 at 12:10 am #941552David M.
ParticipantI would like to add even more pages, so i need to get this optimized.
Can you please tell me how the import works?
If i would remove all previously imported events and not display these anymore, would that help?When i visualise the page, i does take time, but majority for events previously imported, which is kind of unnecessary.
Thx again for your help.
February 11, 2015 at 7:38 am #941603Brian
MemberThe script loads all the Facebook Page’s and then has to check each event with Facebook and then in your site to see if it has been imported or not to prevent duplicates.
So it is necessary to have all the events there and to check or it would just reimport them every time, creating another issue. We have tried to improve that check in the next release to make it more efficient, but that release is not ready yet and I do not have a timeline for its release.
The import function is all run through this file:
the-events-calendar-facebook-importer\the-events-calendar-facebook-importer.php
February 12, 2015 at 7:02 am #941944David M.
ParticipantSo if i would call this url via cron, the import should also work?
the-events-calendar-facebook-importer\the-events-calendar-facebook-importer.php
February 12, 2015 at 7:50 am #941980Brian
MemberIt would not work if you ran that file with a cron.
The function is registered with the WordPress cron, if you would like to run it more you could customize the frequency and then trigger the WordPress cron.
March 20, 2015 at 6:30 am #949667Brian
MemberI am going to close this topic as we typically close threads if there is no activity after two weeks. Feel free to create a new thread and reference this one to save you time.
Thanks
-
AuthorPosts
- The topic ‘Automatic import Facebook events to events’ is closed to new replies.
