Ultimate Facebook – Unable to post Events+ custom post types to Facebook Events

Hi,

I’ve linked a site to facebook with the Ultimate Facebook plugin (latest version). Autposting posts to fb works fine, and getting comments back from fb also works fine.

What I am trying to do is set it up to where the Events+ custom post types map to my events section on a facebook page. I’ve configured this in the “Autopost to Facebook” settings (“Autpost Events to: Facebook events of this user: XXX”:wink:.

For some reason every time I then post the event I get a red error box stating that the post was not posted to facebook.

When switching the option to “Autpost Events to: Facebook wall of this user: XXX” the post goes through (only it is posted to FB as a wall post, obviously).

Is Ultimate Facebook designed to allow what I’m trying to do and if so any ideas what could be causing the hiccup?

Thanks,

-JD

  • aecnu
    • WP Unicorn

    Greetings JD,

    Sorry to hear that you are having an issue publishing to Facebook.

    The first thing is to check on that you mentioned you have the latest version of Ultimate Facebook but our system indicates different.

    Are you indeed using version 2.5.2?

    Is Ultimate Facebook designed to allow what I’m trying to do and if so any ideas what could be causing the hiccup?

    This is a great question but also the question must be asked does Facebook allow what you are trying to do?

    Which I do not know.

    Therefore I will see if I can get the lead developer in here with his invaluable insight into this plugin for his advice/advise for us.

    Though this may take a bit longer then a normal ticket, I will try to get him in here asap.

    Cheers, Joe

  • aecnu
    • WP Unicorn

    Greetings JD,

    Thank you for that screen shot which indicates a relatively small hosting issue where the curl module does not appear to be installed.

    To confirm this you can use the attached zip file, download it, extract it, and then FTP it to the root of your hosting.

    Next thing is to call it into your browser using something like:

    http://yourdomain.com/phpinfo.php

    Look for and confirm that Curl is not present as shown that it is in my screen shot below.

    If curl is not present you will want to check with your host on how to enable curl

    Please advise.

    Cheers, Joe

    [attachments are only viewable by logged-in members]

  • JD
    • Flash Drive

    Tried it a few more times. Here are screenshots of what the post says after publishing and the error log. I had removed the old application and replaced it before trying again; hence there are many errors on the log stating that the application had been deleted.

    [attachments are only viewable by logged-in members] [attachments are only viewable by logged-in members]

  • Vladislav
    • Dead Eye Dev

    Hi,

    I couldn’t replicate the issue on my install, but I did moved the publish processing hook further up in the queue to make sure we’re not dealing with some sort of race condition with Events+ and Ultimate Facebook post post-processing. Can you please update to the latest Ultimate Facebook release (v2.5.3, just released) and see if it helps? Also, there’s a bit of code that might come in handy with posting events, you can save this as a separate mu-plugin (or place it in your functions.php file):

    function eab_wdfb_spawn_event_model ($post) {
    if (!class_exists('Eab_EventModel')) return false;
    if (Eab_EventModel::POST_TYPE != $post->post_type) return false;
    return new Eab_EventModel($post);
    }

    function eab_wdfb_process_start_time ($time, $post) {
    $event = eab_wdfb_spawn_event_model($post);
    return $event ? $event->get_start_timestamp() : $time;
    }
    add_filter('wdfb-autopost-events-start_time', 'eab_wdfb_process_start_time', 10, 2);

    function eab_wdfb_process_end_time ($time, $post) {
    $event = eab_wdfb_spawn_event_model($post);
    return $event ? $event->get_end_timestamp() : $time;
    }
    add_filter('wdfb-autopost-events-end_time', 'eab_wdfb_process_end_time', 10, 2);

    function eab_wdfb_process_venue ($venue, $post) {
    $event = eab_wdfb_spawn_event_model($post);
    return $event ? $event->get_venue() : $venue;
    }
    add_filter('wdfb-autopost-events-location', 'eab_wdfb_process_venue', 10, 2);

    This will make sure the proper event start/end timestamps are used for Facebook publishing, and also add support for the Events+ venue location.

  • JD
    • Flash Drive

    Thanks for trying with that Vlad, but sadly I am still getting the issue with 2.5.3 . I’m going to fresh install again and go through everything step by step to see if I missed anything – though I’ve already done that twice so I’m not hopeful. Is there any other thing you can think of that would be preventing this?

  • aecnu
    • WP Unicorn

    Greetings JD,

    Any chance you can confirm that curl is indeed installed by checking with the phpinfo.php file?

    Is there any other thing you can think of that would be preventing this?

    Facebook themselves who has been wreaking havoc since March of this year trying to squeeze everyone to have to log in to do anything so they can get their advertising in your face and possibly that the server/host is not allowing communication to other servers which is highly unlikely but still possible.

    Have you made any progress since your last post?

    Please advise.

    Cheers, Joe

  • Kimberly
    • Champion of Loops

    Hi!

    Just checking in :slight_smile:

    I’m guessing that because we haven’t heard back from you that you’ve got your issue worked out via live chat or email, or that we have reached the end of our convo here. If you are still having problems or need any other answers on this particular topic please feel free to come back to this thread at anytime. Just be sure to mark it Not Resolved so we don’t miss it!

    This ticket is only being Resolved due to lack of activity. It is by no means an action to avoid, brush off or minimize your issue. We are ready and here if you want to re-open at any time and I apologize in advance for any lack of communication if this ticket is being closed in error.

    Thanks for being part of the WPMU DEV Community!

    Best,

    Kimberly