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

facebook share image

Discussion in 'Troubleshooting and Problems' started by majdi, Apr 14, 2011.

  1. majdi

    majdi Well-Known Member

    when i share a topic from my forum on facebook using the share button, the published picture is the one of the thread starter avatar.
    i want to make it show the forum logo. how can i achieve it ?
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    I assume you've uploaded a logo to the relevant directory and configured the option in the ACP?
    http://xenforo.com/community/threads/facebook-recommend-image.13596/#post-178159

    See my post here related to it: http://xenforo.com/community/thread...ssage-posters-avatar.13465/page-2#post-179678

    Facebook is a law unto itself regarding this.
    Mine changed from logo to avatar and back to logo again for no apparent reason.
    http://xenforo.com/community/threads/logo-not-showing-on-facebook-post.13635/page-2#post-181847
     
  3. majdi

    majdi Well-Known Member

    i guess its a size issue, i'll make a bigger logo.og and see what happens
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    Try using one 100x100px.

    There is some suggestion that Facebook uses the larger of the two so making it 100px square should ensure it is used in favour of the thread author's avatar which is 96x96px.
     
    erich37 likes this.
  5. majdi

    majdi Well-Known Member

    it has to be square ?
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    That's the format used by Facebook so it will look best if it's square.
     
  7. majdi

    majdi Well-Known Member

    thanks brogan, very helpful and quick as always (y)
     
  8. Brogan

    Brogan XenForo Moderator Staff Member

    I've since discovered that Facebook have changed how this works...again.

    Clicking Recommend on my site now results in the thread author's avatar showing.
    So over the past few months, with no changes at all with my installation, it has gone from logo to avatar to logo to avatar.

    I'm sick and tired the way Facebook keep messing with this.
     
  9. Onimua

    Onimua Well-Known Member

    One of the reasons I stopped developing an app on the platform itself. ;)
     
  10. Wuebit

    Wuebit Well-Known Member

    +1 its more hassle that it's worth imo! am so close to just removing it from everything >.>
     
  11. Ray

    Ray Active Member

    or you could just edit the "opengraph meta tags" and remove the conditional pointing to the avatar and leave the forum logo.

    It would be better if the first image in the thread was used and if there weren't any images in the thread, the avatar or forum logo would be used.
     
  12. Brogan

    Brogan XenForo Moderator Staff Member

    I know you can edit the template, but you shouldn't have to, to correct buggy behaviour in Facebook.

    I suppose I'll just have to resort to pasting the URL directly onto the wall and select the image manually.
     
  13. DerTobi75

    DerTobi75 Active Member

    Where can I edit the @ogLogoPath?
     
  14. Peggy

    Peggy Well-Known Member

    Style Properties -> Header and Navigation: Facebook Open Graph Logo

    (the link is in the second post, above).
     
  15. DerTobi75

    DerTobi75 Active Member

    Opps,sorry, missed it ;(
     
  16. Peggy

    Peggy Well-Known Member

    That's ok! :)
     
  17. Saburov

    Saburov Active Member

    Why there is no title and share image when i like a thread in my forum? Only link.

    face.jpg
     
  18. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Some things to check:

    1) Make sure you have entered an app id or admin:

    Admin CP -> Home -> Options -> Facebook Integration

    2) Revert these templates if they are customized:

    Admin CP -> Appearance -> Templates
    > thread_view
    > open_graph_meta


    In particular, the thread_view template should contain this:

    Code:
    <xen:container var="$head.openGraph"><xen:include template="open_graph_meta">
    		<xen:set var="$url">{xen:link 'canonical:threads', $thread}</xen:set>
    		<xen:set var="$title">{xen:helper threadPrefix, $thread, escaped}{$thread.title}</xen:set>
    		<xen:set var="$avatar">{xen:helper avatar, $thread, m, 0, 1}</xen:set>
    	</xen:include></xen:container>
    
    This code sets the og information for thread pages which defines the title and image (which are the thread title and the avatar of the thread author).
     
    Saburov likes this.
  19. Saburov

    Saburov Active Member

    Thanks jake but there is no "revert" option in templates section. There is only "save all ... " save and exit" "delete..."
     
  20. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The revert option shows as a red X in the template list:

    Screen shot 2011-12-21 at 5.41.41 PM.png
     

Share This Page