Wondering how to use Facebook Debugger to Fix WordPress Images? Our in-house experts are here to help you out with this article. Our WordPress Support team is here to offer a lending hand with your queries and issues.
Facebook Debugger to Fix WordPress Images
Whenever someone uses a social share button or copies and pastes a link to your page, Facebook will crawl the HTML of your website. Then, it generates a thumbnail image, title, and description based on this information.
Here are some general requirements your site should follow to ensure this process runs smoothly:
- Gzip and deflate encoding in your server
- List open graph properties within the 1 MB of your HTML
- Limit page loading time to a few seconds
- Add the crawler’s user agent strings or IP addresses to your site’s allow list
- Ensure your privacy policy is crawlable
How To Use Facebook’s Sharing Debugger to Fix WordPress Images
Any platform or tool will have problems or quirks that you have to work around.
The Facebook Sharing Debugger tool was created to help you solve issues with your Open Graph Meta Tags, as well as troubleshoot caching.
You can find the Sharing Debugger on the Meta for Developers site under Tools. To crawl a post, simply enter the URL and click on Debug.
Step 1: Clear the WordPress Cache for That URL
To ensure Facebook grabs the latest information about your post, you’ll need to clear the cache in WordPress.
If the old image is still cached on your site, the Sharing Debugger isn’t going to be able to help fix your problem as it will simply re-fetch the cached information.
With Kinsta server-level caching, whenever a post is updated, the cache for that page or post is cleared automatically.
If you are using a different caching solution or third-party plugin, you’ll want to look into their documentation to ensure you know how to clear your cache.
If all else fails, you can always clear the cache on your entire WordPress site. However, keep in mind that your site will have to rebuild the cache, which can degrade your site speed.
If you decide it’s necessary, open MyKinsta, navigate to your WordPress site then click Tools. Here, click on Clear cache.
Step 2: Scrape Again in the Sharing Debugger
Now that the cache is cleared for the post or page in question, we’ll need to scrape it again in the Facebook Debugger tool.
To do this, click on the Scrape Again button.
You might encounter warnings that are not always the most accurate.
So this is when we hit the Scrape Again button for a second time.
Yes, it might sound odd. But a lot of times you might need to scrape twice. After this, you’ll see that it is now pulling the new featured image with the new file name as the og:image
attribute
Conclusion
In conclusion, our Support Engineers showed us steps to use Facebook Debugger to Fix WordPress Images. Drop us a line in the comments if you face any trouble.
0 Comments