WordPress.org

Ready to get started?Download WordPress

Forums

Facebook Open Graph Meta Tags for WordPress
[resolved] [Plugin: Wonderm00n's Simple Facebook Open Graph Meta Tags] Take out use images from content or (10 posts)

  1. db.studios
    Member
    Posted 2 years ago #

    Trying to get rid of the PHP at the right spot so that this Wonderm00n's plugin doesn't pull images from the content or the gallery. I just want it to either pull from featured/thumbnail or the default.

    Is this possible? or does anyone recommend any other plugins for this?

    TX!

    http://wordpress.org/extend/plugins/wonderm00ns-simple-facebook-open-graph-tags/

  2. Daedalon
    Member
    Posted 2 years ago #

    I would also need the option to affect which image options are used. On a text-only blog Facebook retrieves the AddThis social sharing button as the featured og:image. The button is in the end of all posts.

    This happens whether this plugin's image feature is enabled or not. What I'd like is to either be able to tell Facebook not to use any image on that blog, or to force a default (empty) image file to be used instead of the button image found at the end of the posts. Both of these could be achieved if it was possible to enable the og:image and then choose which of these four methods are used:

    • From post/page featured/thumbnail image
    • or if it doesn't exists from the first image in the post content
    • or if it doesn't exists from the first image on the post media gallery
    • or if it doesn't exists from the default image defined on the options menu.

    I'd simply enable only the last one and try defining an empty URL so the plugin would generate <meta property="og:image" content="">. If Facebook would still insist on finding an image from the page, I'd upload a 1x1blank.gif on my server and set it as the og:image.

    In short: add checkboxes for all the four of the above, and when the default image checkbox is checked, use its value even if it's null.

  3. wonderm00n
    Member
    Plugin Author

    Posted 2 years ago #

    I'll take a look at this ;-)

  4. wonderm00n
    Member
    Plugin Author

    Posted 2 years ago #

    db.studios, Daedalon:

    Please check the last version 0.1.9.5
    It's now possible to activate/de-activate each post/page image option as you wish.

    Anyway I do not show a empty og:image tag because Facebook will simply ignore it and use the first image of the page (example: a social icon) as he wish.

    A high rating on the plugin is welcome ;-)
    And there's always the donate button ;-)

  5. Daedalon
    Member
    Posted 2 years ago #

    Upgraded to 0.2.1. Works like a charm. Now the only thing missing is having a default image on my site to force upon Facebook instead of grabbing that AddThis one.

  6. Daedalon
    Member
    Posted 2 years ago #

    Thanks for the additions. I've rated the plugin. Always do for those that I've tried to support the community :)

  7. squizeers
    Member
    Posted 2 years ago #

    I am trying to use this plugin for sharing the individual images of the default wordpress gallery. How do I do that?

  8. db.studios
    Member
    Posted 2 years ago #

    Thanks wonderm00n for fixing the problem! Before I saw the reply to this I had already figured out an easy way to implement the featured image option into the Facebook meta.

    I wrote and article that is easy to follow hope it helps everyone! Easy way to configure WordPress Facebook Like button with featured image

  9. wonderm00n
    Member
    Plugin Author

    Posted 2 years ago #

    db.studios: You can always add to your article: "Or you can use the Wonderm00n's Simple Facebook Open Graph Meta Tags plugin" :-D

  10. db.studios
    Member
    Posted 2 years ago #

    wonderm00n - ha ha I will consider doing that :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic