As discussed here before, OG:image tag can be a very useful tool to promote your site via social networks. I have found that the most sensitive scraper belongs to not other than Facebook.

 

Facebook doesn't recognize og:image tag

Facebook doesn’t recognize og:image tag

Key points to check if for some reason you get: Inferred Property The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.

  • Make sure that none of your files (also the included ones) do not contain BOM. You can check if with a text editor like Notepad++. See image below on how you encoding should NOT be. Your encoding should be “UTF-8”.  This can easily be fixed with the “Encoding -> Convert to UTF8”  menu on notepad++ and save.

    utf-8 With bom on notepad++

    utf-8 With BOM on notepad++

  • Make sure your HTML tags are not broken. You can use a validator to quickly scan your page and find out.
  • Check og URL meta tag <meta property=”og:url” content=”https://www.testurl.com/” > and make sure it’s url encoded.

Leave a comment