user

Mohamed Atef

8 Dec 2021

Could not be processed as an image because it has an invalid content type

React js

Facebook debugger is returning this error and not displaying the preview image “could not be processed as an image because it has an invalid content type”, anyone knows about this error however the og:image content leads to the correct preview image & I added og:image:width & og:image:height, 
any suggestions, please? (Reactjs application)
the screenshot attached below 

— After many times of trying i figured out the issue ---
I did 2 steps until the image appear in the preview

  1. Reduces the dimensions & size of the attached image  
  2. Change the format of the image form PNG to JPEG & included .jpg in the URL in meta content instead of .jpeg
<meta property="og:image" content="/static/screenshot.jpg" />
<meta property="og:image:width" content="1200"/>
<meta property="og:image:height" content="630"/>

Thank you for your support

 

Comments

No Comments to show

© 2024 Copyrights reserved for web-brackets.com