WordPress.org

Ready to get started?Download WordPress

Forums

WP Facebook Open Graph protocol
Default Image URL always overwrites featured/content image (9 posts)

  1. Dustin Lammiman
    Member
    Posted 1 year ago #

    If I specify a Default Image URL, that image is always being used, regardless of whether or not there is an image in the content even when "Force Fallback Image as Default" is not checked. The reason seems to be that it generates the following code:

    <meta property="og:image" content="the-content-image.png">
    <meta property="og:image" content="the-default-image.png">

    Since the default image is second, that is the image Facebook uses. Please fix.

    http://wordpress.org/extend/plugins/wp-facebook-open-graph-protocol/

  2. jmzolezzi
    Member
    Posted 1 year ago #

    Indeed, the same happens on Google Plus (example at http://goo.gl/Jx4mT)

  3. Chuck Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    The plugin puts an array of images in if there are multiple - that's a feature FB added for the OG protocol. It's so you / user can choose which image to use of those in the array

  4. Dustin Lammiman
    Member
    Posted 1 year ago #

    Right, but the fallback image becomes the default in Facebook. My new blog posts are automatically posted to FB so this is a problem (it would be a problem anyway, since I would prefer others who share the page to see the content image first, not the fallback). The order of the images in the header should be reversed.

  5. Chuck Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    putting a note into dev roadmap. if FB always uses the last image in the array as the default display then I see why you'd want it inserted first not last. Problem is... facebook doesn't say shit about how they display stuff; and knowing them they'll change it randomly w/o letting anybody know. Anyways... big rewrite is underway so we'll consider this too.

  6. j_rich
    Member
    Posted 1 year ago #

    I can confirm that as of right now, facebook is still using the last image as the default Open Graph image. Man wouldn't it be nice for facebook to provide another OG tag, something like image-default so one could define the default image for a page or site, but then allow other images as well.

  7. Dustin Lammiman
    Member
    Posted 1 year ago #

    Which means it has been that way for the last three months (at least). It should be a pretty simple code change, could you please make sure it is switched for the next release?

  8. j_rich
    Member
    Posted 1 year ago #

    It should be a very simple code change. Just change the order that the header code is outputted.

  9. Chuck Reynolds
    Member
    Plugin Author

    Posted 1 year ago #

    in beta. when i get some more time soon. probably over the holidays.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.