First of all, congratulations for the script, very good. I’m from Argentina, so sorry for my English.
The question is: I have a cronjob which changes the status of all post, from ‘pending’ to ‘publish’ How do I call the script after running cronjob (today, does not work, it does if I click on the button ‘repost on facebook’ in each post