• Resolved anuragsharma1986.22

    (@anuragsharma198622)


    When I publish a post through cron then posts are not being posted to FB. Post status is changed to publish now but it’s not posted on FB. Without cron it’s working perfect.

    Following code works without cron but not with cron.

    $my_post = array(
    ‘ID’ => $post->ID,
    ‘post_status’ => ‘publish’
    );
    wp_update_post( $my_post );

    I’m getting following response for that particular post.

    [2015-03-13 20:50:49] – [Skipped] [Facebook (MN)] – -=[Unchecked Account]=- – PostID:679
    [2015-03-13 20:50:49] – [Start =- ]- ——=========#### NEW AUTO-POST REQUEST PostID:(679) Automated ####=========——
    [2015-03-13 20:50:49] – [*** ID: 679, Type: event]- Status Changed: pending_to_publish. Autopost requested.

    thanks

    https://wordpress.org/plugins/social-networks-auto-poster-facebook-twitter-g/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author NextScripts

    (@nextscripts)

    “Unchecked Account” simply means that checkbox in front of the account was not checked at the time you hit the “Publish” button.

    Please make sure it checked. Some functionality like excluded category, could auto-uncheck it.

    Thread Starter anuragsharma1986.22

    (@anuragsharma198622)

    Where I can find this option of checkbox in front of account?

    Plugin Author NextScripts

    (@nextscripts)

    They both on the plugin settings page and on “New post” page.

    Thread Starter anuragsharma1986.22

    (@anuragsharma198622)

    But I’m trying to post using a cron. I’m doing it in following way:

    I’ve few posts which I saved with status pending. I’m running a cron script to change statues of that post from pending to publish, then it is not being published on FB. But when I run this script manually then posts are being published on FB.

    Normal process is working properly. I mean when I publish a post using Publish button in a post page then it is posted on FB. So how can I check this checkbox in front of my account?

    Plugin Author NextScripts

    (@nextscripts)

    You need to check it when you save with pending status.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Post is not being published on Facebook if run through cron.’ is closed to new replies.