Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter aeonsablaze

    (@aeonsablaze)

    Ok, I thought the events were public but it turns out that group events inherit their privacy level from the group. So much for that.

    However, that doesn’t explain why I can’t seem to add these events individually, even when logged in.

    Output in the apache error log is:
    [Thu Apr 16 04:31:07.616558 2015] [:error] [pid 3842] [client IPADDRESSREMOVED:47946] PHP Fatal error: Uncaught exception 'Facebook\\FacebookAuthorizationException' with message 'Unsupported get request. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api' in /var/www/html/wp-content/plugins/eme-sync-facebook-events/Facebook/facebook-php-sdk-v4-4.0.23/src/Facebook/FacebookRequestException.php:104\nStack trace:\n#0 /var/www/html/wp-content/plugins/eme-sync-facebook-events/Facebook/facebook-php-sdk-v4-4.0.23/src/Facebook/FacebookRequest.php(280): Facebook\\FacebookRequestException::create('{"error":{"mess...', Object(stdClass), 400)\n#1 /var/www/html/wp-content/plugins/eme-sync-facebook-events/eme-sync-facebook-events.php(132): Facebook\\FacebookRequest->execute()\n#2 /var/www/html/wp-content/plugins/eme-sync-facebook-events/eme-sync-facebook-events.php(418): eme_sfe_get_event('654412744679198', '64908b8e006f593...', '674566942670272', Object(Facebook\\FacebookSession))\n#3 [internal function]: eme_sfe_options_page('')\n#4 /var/www/html/wp-includes/plugin.php(496): call_user_func_arra in /var/www/html/wp-content/plugins/eme-sync-facebook-events/Facebook/facebook-php-sdk-v4-4.0.23/src/Facebook/FacebookRequestException.php on line 104, referer: https://DOMAINNAMEREMOVED.com/wp-admin/options-general.php?page=eme-sync-facebook-events/eme-sync-facebook-events.php

    Same output whether I use the event ID or the full url.

    Plugin Author Franky

    (@liedekef)

    Did you also do this: https://www.e-dynamics.be/wordpress/?p=53053 ?
    If so: provide the group, so I can test it here this evening too.

    Thread Starter aeonsablaze

    (@aeonsablaze)

    Yes, I have done that. The group is https://www.facebook.com/groups/WastelandLARP/

    Does the plugin work for syncing groups? If so, does it matter what privacy level the group is set at?

    Plugin Author Franky

    (@liedekef)

    Try entering “groups/WastelandLARP” as the entry to sync, it should work.
    Since it is a closed group and I’m not a member of a group that has events, I can’t try it here …
    Or try to use the group id, that might work too (the facebook api is “empty” for groups here …)

    Thread Starter aeonsablaze

    (@aeonsablaze)

    No luck I’m afraid. Log output below:

    [Thu Apr 16 09:07:53.495455 2015] [:error] [pid 3934] [client IPADDRESSREMOVED:50464] PHP Fatal error: Uncaught exception 'Facebook\\FacebookAuthorizationException' with message 'Unknown path components: /events' in /var/www/html/wp-content/plugins/eme-sync-facebook-events/Facebook/facebook-php-sdk-v4-4.0.23/src/Facebook/FacebookRequestException.php:134\nStack trace:\n#0 /var/www/html/wp-content/plugins/eme-sync-facebook-events/Facebook/facebook-php-sdk-v4-4.0.23/src/Facebook/FacebookRequest.php(280): Facebook\\FacebookRequestException::create('{"error":{"mess...', Object(stdClass), 400)\n#1 /var/www/html/wp-content/plugins/eme-sync-facebook-events/eme-sync-facebook-events.php(166): Facebook\\FacebookRequest->execute()\n#2 /var/www/html/wp-content/plugins/eme-sync-facebook-events/eme-sync-facebook-events.php(408): eme_sfe_get_events('654412744679198', '64908b8e006f593...', Array, Object(Facebook\\FacebookSession))\n#3 [internal function]: eme_sfe_options_page('')\n#4 /var/www/html/wp-includes/plugin.php(496): call_user_func_array('eme_sfe_options...', Array)\n#5 /var/www/html/wp-admin/admin.php(212): do_action('settings_ in /var/www/html/wp-content/plugins/eme-sync-facebook-events/Facebook/facebook-php-sdk-v4-4.0.23/src/Facebook/FacebookRequestException.php on line 134, referer: https://DOMAINREMOVED.com/wp-admin/options-general.php?page=eme-sync-facebook-events/eme-sync-facebook-events.php

    Plugin Author Franky

    (@liedekef)

    I tried here with a group id and it works (although no events)
    Go to https://developers.facebook.com/tools/explorer
    and enter <group-id>/events as url for testing:
    So for example, if the group events page is
    https://www.facebook.com/groups/56684759360/events/
    then enter “56684759360/events/” ==> result is a list of events.

    For your group the id seems to be “137342069769746”, so try that (and make sure you log in via the facebook button, private events are never synced).

    Thread Starter aeonsablaze

    (@aeonsablaze)

    152614274901955/events/ returns the results that I am looking for in Graph API Explorer but only after generating a token with “user_groups” and “user_events” (both. either alone wont do it). However putting 152614274901955/events/ or 152614274901955 into the plugin seems to have no effect.

    Plugin Author Franky

    (@liedekef)

    I just tried at home with the group id 56684759360 : works fine.
    So I guess it is because it is a private group or so …
    Did you log in with the facebook button too?

    Thread Starter aeonsablaze

    (@aeonsablaze)

    I did, yes. I guess it just won’t work with a closed group. Oh well.

    Plugin Author Franky

    (@liedekef)

    Did you try the id 137342069769746 ? 152614274901955 is not the one for your group it seems.

    Thread Starter aeonsablaze

    (@aeonsablaze)

    152614274901955 gives the correct results via the Graph explorer, 137342069769746 did not. However I went ahead and tried both of them in the plugin with no luck.

    Thread Starter aeonsablaze

    (@aeonsablaze)

    Ok, so I tracked down the issue with the event import.

    I changed scope="user_events" to scope="user_events, user_groups" on line 460 of eme-sync-facebook-events.php and reauthenticated. This allowed me to import the events individually. It seems both permissions are required to import an event from a closed group.

    Plugin Author Franky

    (@liedekef)

    That’s a very nice find! I’ll add it to the code this evening and release a new version.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Group Events Sync?’ is closed to new replies.