wp_insert_post, Jetpack publicize and images
-
Hi, I think I may be asking too much here but let’s try anyway.
I have written a plugin that pulls data from YouTube and Vimeo, downloads a thumbnail, writes a post (back dated to when the video was posted on Vimeo/Youtube) then attaches the thumbnail. This works great but as I want it to appear on Facebook, I am using the Jetpack publicize feature.
That also works but only rarely does it attach the image to the Facebook post. Occasionally it does but not often. I have tried re-ordering so the post is created in draft, the image attached, then the post is amended to published. This did not improve the situation and only resulted in adding two entries per post into the database.
I am thinking that the problem is that it’s happening too fast. Is there any way to programatically delay the publicizing of the post by a few seconds, minutes etc after publishing?
Alternatively is there a way to schedule a post to the blog and also back-date it when it gets on there?
Blog site: https://rollingmedia.net
Facebook: https://www.facebook.com/RollingMediaFeed
- The topic ‘wp_insert_post, Jetpack publicize and images’ is closed to new replies.