I built a plugin for my company, which basically goes to tube sites, scrapes them for content, and posts them automatically in whatever state is defined (publish, draft, future, etc).
Now, everything goes well when I manually add a post through the plugin: it opens a cURL to the sites, grabs the videos and embeds, takes thumbnails, posts titles, flawless. however, when I try to run it from the cron job using
add_action('timelyTube', 'timelyPost');
and on the activation hook:
wp_schedule_event(time(), 'hourly', 'timelyTube');
it works in the sense that it fires the function timelyPost(), but when it goes to grab the video, it's not able to do so, it grabs the thumbnails & titles, but not the embeds, meaning that the cURL is working, but something gets messed up in the process.
if anyone has any idea about what to do, I'll be grateful, Thanks, Itai.