Support » Plugins and Hacks » [Plugin: WP-AutoSharePost] Wrong Image in FB

[Plugin: WP-AutoSharePost] Wrong Image in FB

  • Hi,
    I have installed the plugin and almost everything works fine. Thanks a lot!
    There is just on exception: I’m using it to share to a FB page – text, link etc. works well. But the image that gets exported seems to be picked randomly. In one case it was the Featured Image (“Artikelbild” in German) as I would have expected. I other cases it was the second or third image (although both blog posts also have Featured Images).
    You can see the Featured Images on dreiminutenei.de (the “Lammkeule” and the “Gemüseeintopf” and compare to the images on http://www.facebook.com/Dreiminutenei.
    Thanks for your help – since I’m writing a foodblog, images are really important.


Viewing 4 replies - 1 through 4 (of 4 total)
  • PS: The “Pfifferlinge” image on FB is the correct one.

    Plugin Author BenjaminPaap



    facebook does not know which image to take and the plugin does not tell facebook which to use. You can tell facebook which image to use in your layout. Just edit your header file and add a meta tag like this:

    <meta property="og:image" content="<?php if function_exists('wp_get_attachment_thumb_url')) { echo wp_get_attachment_thumb_url(get_post_thumbnail_id($post->ID)); }?>" />

    Here is a tutorial for this (Step 2 and 3 are interesting for you):

    If you want to specify more things for the shared link on your facebook page you can take a look at the supported meta properties from facebook here:

    Thanks for the response. I’m not sure I should edit my theme files, because that might cause problems with theme updates. Guess I’d better look for another way to post to FB. Please don’t misunderstand: I appreciate your help – I just don’t want to bother with code.
    Thanks again,

    Plugin Author BenjaminPaap


    Hi Thomas,

    reading through the documentation of facebook there might be another way to submit a picture to facebook directly.


    I will see if I can get this done during the weekend to supply you with an updated version. Let me know if this would be an option for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WP-AutoSharePost] Wrong Image in FB’ is closed to new replies.