Do you want to add your website link to Facebook – but it returns link without the image? Probably you have a problem with “encountered an unknown error.”
To check it out, please use debug tool from Facebook:
If you see information like that:
Provided og:image url, https://yourimage.url encountered an unknown error.
Your Website links will have a problem with images! Let’s fix that together!
Set up your image in Yoast Seo
If you want to use other images than your set up image in post or page, you can make it by the Yoast SEO:
- Log in to your WordPress website.
- Click on ‘SEO’.
- Click on ‘Social’.
- Click on the Facebook tab.
- Enter a custom image, title, and description under Frontpage settings.
- Click ‘Save Changes’.
After that, if you have any empty space in images placeholder, Facebook will use that image.
Change image size
First of all, you must check out your image size, if you have it bigger than 1024px width, you must resize it – the best option is to use ratio 1:1
Minify your image
After all, that changes you must reupload your image and add it to the Yoast SEO or to your featured image. Now re-check Facebook debug tool – your image should work perfectly right now!