Events Made Easy › Forums › Bug fixed or feature request implemented › EME Sync FB Events will only sync while logged in?
- This topic has 11 replies, 2 voices, and was last updated 8 years, 9 months ago by Franky.
-
AuthorPosts
-
Sun 14 Feb 2016 at 23:26 #55333AnonymousInactive
Hi Franky,
I just realized that if I’m not logged in via the Settings->EME Sync FB Events, the plugin will not sync when I press the button, giving me a “No valid Facebook Session for this app detected”. My events are public with people reached.
Logged out:
http://imgur.com/GKwMGiT
Logged in:
http://imgur.com/aX5ixdfI’m concerned since I’ll be handing off my site to another person, and I do not want them to mess with the EME settings.
Does the plugin require siteowners to be logged in for the sync’ing of public FB events to work?
Tue 16 Feb 2016 at 07:33 #55334AnonymousInactiveHi Franky,
I did a test, removed all events from EME and set the plugin to sync every hour. I have facebook events set for this weekend.
No events were picked up.
Any advise to check where it might have gone wrong?
Wed 17 Feb 2016 at 15:16 #55337FrankyKeymasterI’ll take a long hard look at that this weekend (although I must admit that facebook doesn’t agree with me …)
Fri 19 Feb 2016 at 03:44 #55344AnonymousInactiveThanks Franky,
Hope FB didn’t completely cut off sync abilities.
Sun 21 Feb 2016 at 06:39 #55345AnonymousInactiveFranky,
This maybe is probably beyond my scope, but I found the following. They were using FQL to query the list of events.
http://stackoverflow.com/questions/3001385/graph-api-get-events-by-owner-creator?rq=1
Thought this might help.
Sun 21 Feb 2016 at 10:38 #55346FrankyKeymasterOk, checked the code: currently, if you’re not logged in, no sync happens immediately but only via cron. Did you check this?
I changed the code (which seems logical to do) to also use the api info if not logged in:
https://plugins.trac.wordpress.org/changeset/1355105/
Try that changeMon 22 Feb 2016 at 03:53 #55347AnonymousInactiveTried it, seems to work (logged out of facebook from my browser, didn’t touch my site), but noticed several points.
It’s a bit long, please bear with it.
#1 It’s not sync’ing on an hourly basis even though I have set it as such in the settings. I’m saw the following code in line 60
function activate_eme_sfe() { wp_schedule_event(time(), 'daily', 'eme_sfe_execute_sync'); }
**my potential noob qns**
If I interpret it correctly, it’s set to daily. Could this be overriding the $eme_sfe_frequency later in your code?#2 I saw the WP posts created by the plugin, but those said events were not listed in the “Events” list. When I woke up in the morning, only then were the events listed.
Is the main EME supposed to only update it’s list of events when the latter “queries” the EME FB Sync plugin? If so, can you highlight which code line from which .php file is triggering it?
Reason is, I’m using the modified code stated below, and it’s double inserting event blog posts, and uploading the cover images repeatedly. Like to know where to disable the repeated insertion of blog posts.
http://www.e-dynamics.be/wordpress/?topic=how-to-create-fb-events-wordpress-blog-post-auto-sync#3 The locations are not recorded correctly. As seen in the screenshots, the locations for 3 events are not recorded, while on has it’s location repeated.
Event list: http://imgur.com/jikb6kD
Events:
http://imgur.com/00e4SGB
http://imgur.com/wXmDdsq
http://imgur.com/UVaORBt
http://imgur.com/lWiV0MF#4 I read in ur code that the cover images are not working, probably from a bug on FB’s end. I found the following in stackflow, someone managed to get it working, though I do not understand completely.
http://stackoverflow.com/questions/23405943/facebook-php-sdk-cant-retrieve-cover-photo-for-event
Facebook’s PHP SDK is now at version 5, not sure if that corrects any of the bugs you’re facing.
Mon 22 Feb 2016 at 10:45 #55348FrankyKeymasterConcerning #1: no (daily is just the default)
Concerning #2: we’re using wp_cron (not cron), read up on that
Concerning #3: see the plugin settings, some locations don’t have a facebook id (facebook is weird) but you can use the address to detect doubles if wanted
Concerning #4: no idea what you mean, the preferred image is working just fine, the code is just taking into account many different stupid facebook cases …Mon 22 Feb 2016 at 16:53 #55349AnonymousInactiveThanks for clarifying.
I changed the locations and indeed some went through. Got the following error msg, is this related to the location FB ID problem?
Inserting location: 14
Updating event: 32
Inserting location: 15
Updating event: 33
Inserting location: 16
Updating event: 34
WordPress database error: []
SELECT * FROM wpph_eme_locations WHERE location_id =’11’Updating location: 11
Updating event: 30Tue 23 Feb 2016 at 00:02 #55350FrankyKeymasterThat’s weird … I can see you have a DB error, but the sql shown seems just fine to me … is there anything in your webserver logfiles?
Tue 23 Feb 2016 at 02:54 #55351AnonymousInactiveHere’s the log. That’s what i found so far.
[Mon Feb 22 23:42:47.850624 2016] [fcgid:warn] [pid 425074:tid 140500204984064] [client 116.87.16.79:57704] mod_fcgid: stderr: WordPress database error for query SELECT * FROM wpph_eme_locations WHERE location_id ='11' made by require_once('wp-admin/admin.php'), do_action('settings_page_eme-sync-facebook-events/eme-sync-facebook-events'), call_user_func_array, eme_sfe_options_page, eme_sfe_sync_events, eme_sfe_send_event, eme_update_location, referer:http://www.pfp.sg/wp-admin/options-general.php?page=eme-sync-facebook-events%2Feme-sync-facebook-events.php
Tue 23 Feb 2016 at 15:44 #55352FrankyKeymasterWell … that doesn’t help us along, since it is indeed the same error but no additional info.
Could you try the mentioned SELECT statement by hand? Or maybe your database server has a log (maybe something happened at that time)? -
AuthorPosts
- The forum ‘Bug fixed or feature request implemented’ is closed to new topics and replies.