Hello,
Thank you for contacting Rank Math and bringing your concern to our attention.
You can set the default Open Graph image in Rank Math > Titles & Meta > Global Meta > OpenGraph Thumbnail.
Once done, add this filter to your website:
add_filter( 'rank_math/opengraph/pre_set_content_image', function( $return ) {
return true;
});
And here is a guide you can follow to add the filter:
https://rankmath.com/kb/wordpress-hooks-actions-filters/
Hope that helps.
Hello Reinelle,
Thank you for the reply. I have implemented this code and flushed my Cloudflare cache and object cache but am still seeing the feature image show up when auditing it via Facebook and Google:
https://developers.facebook.com/tools/debug/?q=https%3A%2F%2Fwww.dealconnect.co.uk%2Fproduct%2F%25f0%259f%2594%25a5-lucrative-commercial-to-resi-flip-in-east-devon-190k-projected-profit%2F
How long would they expect to be replaced? I added the code a few hours ago and was hoping it would now reflect when fetching it as part of a new scrape.
Please advise if I am doing anything wrong or what other options I need to explore.
Thanks,
Hello,
The image shown in the Facebook debugger tool is coming from the og:image
tag.
Please ensure that you have not added that image under the Social tab while editing the page

Also, ensure that the image you have set in Rank Math > Titles & Meta > Global Meta > OpenGraph Thumbnail is as close as 1200 x 630 pixels, and the image file format you are using is only between jpeg, gif, or png as per Opengraph Standards.
If the issue persists, then we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
It is set but only as its pulling it in by default from the feature image, not set manually.
Thanks
Hello,
Thank you so much for getting in touch.
If your goal is to forcibly use a manually entered image path for your Open Graph images, you can try the following code instead:
add_filter("rank_math/opengraph/facebook/image", function ($image_url) {
$image_url = "https://www.dealconnect.co.uk/path-to-your-logo.png";
return $image_url;
});
Can you please confirm if this achieves your goal?
Looking forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.