Scheduled posts

Hi again :slight_smile:

Scheduled posts are not publishing to Facebook.

  • grola
    • WPMU DEV Initiate

    Hi,

    there is solution for this:

    1. file wpmu-dev-facebook.php

    change
    if (is_admin() || (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST)) {

    to
    if (is_admin() || (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) || (defined('DOING_CRON') && DOING_CRON)) {

    2. file lib\class_wdfb_admin_pages.php

    change

    if (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) {
    			add_action('save_post', array($this, 'publish_post_on_facebook'));
    		} else {
    			add_action('post_updated', array($this, 'publish_post_on_facebook'));
    		}

    to

    if (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) {
    			add_action('save_post', array($this, 'publish_post_on_facebook'));
    		}
    		else if (defined('DOING_CRON') && DOING_CRON) {
    			add_action('future_to_publish', array($this, 'publish_post_on_facebook'));
    		} else {
    			add_action('post_updated', array($this, 'publish_post_on_facebook'));
    		}

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.