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

og:image -- how to get the image from the entry to show up on Facebook when shared

How Do I?

infopulse's avatar
infopulse
78 posts
10 years ago
infopulse's avatar infopulse

I am trying to get FB to show the image from an entry when sharing, instead of showing a random image from the entire page. I know I need to tell FB where to find the image, but nothing I’ve tried has worked. This is my current iteration (yes, it’s from EE1.73, but I have the same problem on EE2.x sites):

{exp:weblog:entries weblog="{master_weblog_name}"}
<meta property="og:url" content="{title_permalink=v2_5/comments}" /> 
<meta property="og:type" content="article" />
<meta property="og:title" content="{title}" />
<meta property="og:description" content="{body}" /> 
<meta property="og:image" content="{path='{trimmed_url}'/ee/images/uploads/'{post_image}'}" />
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
{/exp:weblog:entries}

The site is westportnow.com

HELP! And thank you. Lee

       
jay_turley's avatar
jay_turley
46 posts
10 years ago
jay_turley's avatar jay_turley

The Facebook Open Graph debugger has been of some help to us as we have attempted to solve this issue. It’s not exclusive to EE, because we are seeing the same issue in two other CMS systems we routinely use.

https://developers.facebook.com/tools/debug/og/object/

       
infopulse's avatar
infopulse
78 posts
10 years ago
infopulse's avatar infopulse

Thank you, I’ve used the debugger and it helped me troubleshoot another problem.

But I still don’t know what to use for og:image!

       

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.