Thread Starter
gdvine
(@gdvine)
Plugin Author
Franky
(@liedekef)
Since I’m still using API 2.3, this is not relevant.
See this:
https://ww.wp.xz.cn/support/topic/group-events-sync?replies=14
(search for user_groups, at the bottom)
You need to give your app the correct permissions (but beats me again which exactly, since it works fine here).
So: logout using the button and log in using the button again, then it should ask you for the correct permissions (I guess). The facebook doc is:
https://developers.facebook.com/docs/facebook-login/permissions/v2.4#checking (so if you understand anything of it, please do explain it to me …)
Thread Starter
gdvine
(@gdvine)
Thanks for your reply Franky — I would submit that it is relevant, since when creating a new FB app, a developer cannot select an old API version — I’m stuck with v2.4.
You ask me to log out using the button in the settings page (I assume?) but I was never able to log in in the first place. That Facebook support document you sent is definitely over my head.
It seems you will need to update the plugin to support the new FB API, as all your new users will be unable to sync unless you do, according to the article I sent, as user_groups permission was removed.
Plugin Author
Franky
(@liedekef)
Hmmm … seems to be the case. Weird that an API is applied to an app being created, that’s not what people call an API …
Anyway, I’m a bit in the dark with Facebook too sometimes, so try removing user_groups from eme-sync-facebook-events.php (search for “user_events, user_groups” and replace by just “user_events”)
Thread Starter
gdvine
(@gdvine)
Well obviously any app a developer creates will need to communicate with Facebook’s servers somehow, and that is done through an API.
Thanks for the suggestion. I tried that change, reloaded/updated the EME FB Sync settings page a couple times, also reset my secret and re-added my Facebook page to the settings, but I’m getting the same error.
Random thought: perhaps you need to upgrade the SDK? Just a wild guess here.
Plugin Author
Franky
(@liedekef)
For the api: I just find it weird that facebook forces another version for your app than mine (mine works, yours doesn’t …). Anyway, I just checked and removing user_groups should make it work …
Concerning the sdk: I just saw that too, and yet again I’ll need to change the code since all php calls changed in the new version
Edit: for the user_groups, maybe you need to try to create a new facebook app after having made the change, but it should just work …
Thread Starter
gdvine
(@gdvine)
I would use the words “horrible and cruel” to describe Facebook’s versioning policy, rather than weird, but we’re in agreement.
Okay we’re making progress, thanks for your suggestion. Changing the PHP then making a new app allowed me to log in to FB from the settings page. However, updating does not actually sync events. I get a success message, but events still aren’t syncing. Any ideas?
Since all users from here on out will be using API v2.4, it is in your interest make a new app and test your plugin with v2.4, checking along the way for any errors or suspicious log messages. It sounds like we’re flying blind here…
Thread Starter
gdvine
(@gdvine)
Hi Franky, I updated to the new version but the one event I’m trying to sync isn’t being imported, despite no error messages. I assume it has to do with the new API version, any ideas?
Plugin Author
Franky
(@liedekef)
Well … no error would mean no error, so something else is wrong then.
But I released 1.0.16, maybe it helps.
Also: check your webserver logfiles for possible php error lines, those might give a clue too.
Thread Starter
gdvine
(@gdvine)
Awesome, 1.0.16 seems to have fixed it! Thank you very much Franky.