Open Graph, define OG:image

  • Emily Bennett
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 11 months ago #125170 by Emily Bennett
Open Graph, define OG:image was created by Emily Bennett
I searched forums to see if I could find an answer.

Sometimes when people share an event, it grabs the image I have placed in the large description.
Othertimes, it grabs the header.logo image.

When I check the open graph debugger tool in facebook, it says that og:image is undefined and it's left to guessing.

Am I missing a setting somewhere in the event booking plugin that set the event image?

I have one or two other sharing plugins installed and realize they may have an influence as well. I'm on a quest to figure out how to control that og:image setting.

Please Log in or Create an account to join the conversation.

More
4 years 11 months ago #125185 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Open Graph, define OG:image
Hello

If your event has image uploaded, og:image will have value (it's url to event image)

Not sure why it's not defined on your site. If you send us the link to that page, we will be happy to check it

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Emily Bennett
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #125645 by Emily Bennett
Replied by Emily Bennett on topic Open Graph, define OG:image
Here is what i learned:
I don't use the image field, as the theme I use doesn't like it or resize it to fit displays.
Instead, I insert the image into the short description and the long description directly.

In looking at the code, if the image i put in the short/long description is between the <p> </p> it fails. If it's in front of the <p> the image is successfully autodetected.

This is not your issue, but a problem with my theme I think.

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #125648 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Open Graph, define OG:image
If you don't select image for event and just put it into description, then there is no way for the system to detect it and set it for og:image

You should use build-in image field to select the image and it should be fine

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc