WordPress.org

Ready to get started?Download WordPress

Forums

WP-AutoSharePost
Wrong Image in FB (5 posts)

  1. Thomas
    Member
    Posted 1 year ago #

    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.
    Best,
    Thomas

    http://wordpress.org/extend/plugins/wordpress-autosharepost/

  2. Thomas
    Member
    Posted 1 year ago #

    PS: The "Pfifferlinge" image on FB is the correct one.

  3. BenjaminPaap
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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):
    http://www.hongkiat.com/blog/facebook-open-graph-wordpress/

    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:
    https://developers.facebook.com/docs/opengraphprotocol/

  4. Thomas
    Member
    Posted 1 year ago #

    Hi,
    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,
    Thomas

  5. BenjaminPaap
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Thomas,

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

    https://developers.facebook.com/docs/reference/api/link/

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.