Results 1 to 2 of 2

Thread: Image preview extension

  1. #1
    New user
    Join Date
    12-13-13.
    Posts
    1

    Default Image preview extension

    Hi All,

    First of all, I hope I am posting in the right spot =)
    I just started working with Contao (version 2.9) and I am taking care of the news section.
    I just inserted a facebook plugin at the bottom of the news details but, when sharing on facebook, it won't show the image.

    What do I need for make it possible?

    Thank you!
    Miri

  2. #2
    User Toflar's Avatar
    Join Date
    06-19-09.
    Location
    Lyss, Switzerland
    Posts
    170

    Default

    Hi

    You're looking for Facebook-specific HTML meta tags (called Open Graph).

    You'll need something like this in the "<head>" part of your HTML code.
    HTML Code:
    <meta property="og:image" content="http://domain.myimage.jpg"/>
    Make sure it fulfils the size requirements, otherwise it won't be shown. Check out developers.facebook.com for more details.
    Regards

    Yanick - Contao core developer @terminal42 gmbh

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •