• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Facebook demanding og.image width and height

Lemminator

Well-known member
#2
i have the same problem ...

The provided 'og:image' properties are not yet available because new images are processed asynchronously. To ensure shares of new URLs include an image, specify the dimensions using 'og:image:width' and 'og:image:height' tags
 

Mike

XenForo developer
Staff member
#3
It would require manual edits to the open_graph_meta template (or the template that calls it).
 

Lemminator

Well-known member
#4
is this so correct ?

Code:
  <meta property="og:type" content="article" />
  <meta property="og:url" content="{xen:raw $url}" />
  <meta property="og:title" content="{xen:raw $title}" />
  <meta property="og:image:width" content="400" />
  <meta property="og:image:height" content="300" />
 

Mike

XenForo developer
Staff member
#5
There are situations where we provide 2 og:image values (see the $avatar line), so I suspect you'd have to remove the avatar version. But that looks correct based on Facebook's message.