Using the first attachment of threads as Facebook og image (for sharing threads on Facebook)...

agison

Well-known member
agison submitted a new resource:

Using first image in thread attachments as Facebook OG Image (for sharing threads on Facebook) - Your shared thread on FB will have an image instead of your site's logo.

This simple template modification will allow use to use first attachment (image) as Image OG. So our threads will have images when we share them on Facebook and Twitter.

To use this you need to create a Template modification as below and theads should have an image as the first attachment.

Create a Template modification:

  • Template: thread_view
  • Search type: Simple replacement
  • find:

<xf:macro template="metadata_macros" name="metadata"...

Read more about this resource...
 
That’s a shame @agison. Any particular reason, as it’s something I’ve used and would be nice to know if there is issues.
 
Back
Top Bottom