Im trying to post an entry to FaceBook and I cant seem to get the image to display. My code looks like this:
{exp:channel:entries channel="news" limit="1" status="open" require_entry="yes" orderby="date" sort="desc" disable="categories|category_fields|member_data|trackbacks" dynamic="yes" show_future_entries="yes" show_expired="yes"}
<meta property="og:image" content="{images limit="1"}{image}{/images}">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="alt">
<meta name="og:title" content="News - {title}">
<meta property="og:url" content="url-here">
<meta property="og:type" content="article">
<meta name="description" property="og:description" content="description">
{/exp:channel:entries}
When I run the url through the FaceBook share debugger I get this error:
The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.
I just dont know where the problem lies. Any help greatfully accepted.
Paul
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.