1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Lack of Interest why facebook share doesn't see images included in the post

Discussion in 'Closed Suggestions' started by Ahmed Saleh, Sep 23, 2012.

  1. Ahmed Saleh

    Ahmed Saleh Member

    Hello ,
    when i try to Share any Thread contains Images , facebook ignore them all and show only the users avatars .
    this happens here as well .

    is this require certain update or add-on or something ?
  2. Chris D

    Chris D XenForo Developer Staff Member

    This is the template code that pertains to Facebook open graph meta data and images:

    <xen:if is="{$avatar}"><meta property="og:image" content="{$avatar}" /></xen:if>
    <meta property="og:image" content="{xen:helper fullurl, @ogLogoPath, 1}" />

    Default behaviour means you have two choices, either the avatar of the person sharing or the image as specified by Style Properties.

    See the problem is, Facebook doesn't actually look at the content of your page, it has to be told what's on it.

    Common misconception that Facebook actually looks at the content and makes the post based on that.

    Look at the code for this very page:

    <meta property="og:site_name" content="XenForo Community" />
    <meta property="og:image" content="http://xenforo.com/community/data/avatars/m/3/3030.jpg?1294984494" />
    <meta property="og:image" content="http://xenforo.com/community/styles/default/xenforo/logo.og.png" />
    <meta property="og:type" content="article" />
    <meta property="og:url" content="http://xenforo.com/community/threads/why-facebook-share-doesnt-see-images-included-in-the-post.36593/" />
    <meta property="og:title" content="why facebook share doesn't see images included in the post" />
    <meta property="fb:app_id" content="146201428725181" />
    This is information specifically fed to Facebook via the meta tags.

    There is one solution that might help... let me track it down.


    Yep, check out this post from Jake Bunce:

    Or this post from Mutt:

    These both override the default behaviour in different ways.

    Mutt's may be closer to what you're after.
    Ahmed Saleh likes this.
  3. Ahmed Saleh

    Ahmed Saleh Member

    Fixed using one of the mentioned topics
    , Thanks :)

Share This Page