Join us for EEConf 2023, October 4-5 in Orlando. Speakers. Networking. Community powered. Awesome.

Join us for EEConf 2023, October 4-5 in Orlando.

Register Now!

We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Cant get image to display when sharing to Facebook with "og:image" property within entry tag

How Do I?

's avatar
6 posts
4 weeks ago
's avatar

I have my “og:image” property within entry tag 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:secure_url" 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="alternative" />
{/exp:channel:entries}

Im using a “Social Bookmarks” addon and the review before posting comes out displaying the image but when I post the image is absent.

If I run the page url through Facebook’s Sharing Debugger it states that the image is present and no problems were found but it also throws up one issue:

Warnings That Should Be Fixed

Inferred Property - The ‘og:image’ property should be explicitly provided, even if a value can be inferred from other tags.

Am I doing something wrong?

Thanks for any help, Paul 😊

       
jelle's avatar
jelle
64 posts
4 weeks ago
jelle's avatar jelle

I see you are missing this one, which might cause this: <meta property=”og:image:url” content=”{images limit="1"}{image}{/images}” />

       
's avatar
6 posts
4 weeks ago
's avatar

Thanks jelle, I added this but it makes no difference. :(

Paul

       
holyguarded's avatar
holyguarded
1 posts
3 weeks ago
holyguarded's avatar holyguarded

I also try it, but it’s no meaning anyway

       
jelle's avatar
jelle
64 posts
3 weeks ago
jelle's avatar jelle

Hi Paul, I was just wondering… isn’t that plugin really old/outdated?

       
's avatar
6 posts
3 weeks ago
's avatar

Yes, its pretty old but I changed the code so it works with version 6. Its not the addon where the problem lies. If I copy the url and paste as a comment in facebook it still doesnt appear.

Paul

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.