• Resolved gdvine

    (@gdvine)


    Hi, I was able to sync using EME on another site recently, but that was via API v2.3. It worked great, really cool plugin!

    Now I’m trying to do the same thing for a different WordPress install. I have set the App Domain and Site URL in the Facebook Developer App settings simiarly to my old site but with the new URL — however this time it shows API v2.4. (I’m not sure that has anything to do with my issue, it’s just the only difference I could find.)

    I want to set up auto-sync of Facebook Events, and first I want to do a manual update to get the initial batch of events. However, I’m getting an error when I try to log in using the button on the EME FB Sync Settings page:

    Invalid Scopes: user_groups. This message is only shown to developers. Users of your app will ignore these permissions if present. Please read the documentation for valid permissions at: https://developers.facebook.com/docs/facebook-login/permissions

    Do you know what could be causing this and how I could fix it?

    https://www.ads-software.com/plugins/eme-sync-facebook-events/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter gdvine

    (@gdvine)

    Looks like I was right — this is a change in the API after all:

    https://www.ads-software.com/support/topic/july-8-2015-facebook-invalid-scopes-user_groups-and-other-problems?replies=9

    Looking forward to your update Franky ??

    Plugin Author Franky

    (@liedekef)

    Since I’m still using API 2.3, this is not relevant.
    See this:
    https://www.ads-software.com/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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem syncing to API v2.4’ is closed to new replies.