Using a custom function, your plugin creates “auto draft” posts on FB
-
I’ve written a custom function that takes a YouTube ID and via the YT API, pulls the title, main image, publish date and URL to that video, and creates a WordPress post. The problem is that it creates the Facebook post on our page, but only as a post to the page with the text of “Auto Draft” and a malformed link.
I should note that it creates the BlueSky post without issue. I’m using almost identical coding pulling stories via RSS feeds from another site (with permission) and those post just fine to both Facebook and BlueSky.
Is there a manual trigger I can call up to create the Facebook page post AFTER the content is situated? Because the custom post type functionality isn’t working properly (I start this as a custom post type, but it gets converted to a standard WordPress post, hooked into a category when it’s done).
The topic ‘Using a custom function, your plugin creates “auto draft” posts on FB’ is closed to new replies.