publish_future_post in functions.php (wordpress) don't run script made with Facebook SDK 3
Dear Wordpress Hackers and Lovers, I'm getting mad trying to let my script publishing a photo automatically to a fan page everytime a scheduled post is being published using the facebook SDK 3 ( https://github.com/facebook/facebook-php-sdk ). The problem is that the script stop running when the wp_cron execute a line in functions.php that has to populate the object Facebook when published using the add_action('publish_future_post', 'future_post_being_published', 10, 1); . With publish_post works perfectly. The script stop running when come across the following: $facebook = new Facebook(array(