So I’m having a workflow (not the module) where scheduled nodes are published all around the clock and I share them to Facebook but the cache in Drupal is set quite hard, so the metatags for the page hasn’t been cleared when the post is pushed to Facebook, which gives me a rather dull shared post since the big image isn’t shared, and most of the times Facebook just picks a random image of the page making the post strange.
I have taken some code from the Flush Facebook cache-module, and when a nodes goes from unpublished to published, it’ll flush the cache for the page and it works ok, BUT the metatags are still wrong, they are cached withing Drupal.
In some way I would like this workflow:
Node being published >
Clear cache of that page (only that page) >
Wait 60 seconds for the cache to be finished >
Send request to re-index the page from Facebook Debugger >
Post the post to Facebook
I’ve been using Facebook Autopost and Rules for the posting, custom code for the Facebook flushing, but I can’t get it to work. Any ideas? Any help?