WordPress.org

Forums

Simple Facebook Connect
Open Graph tags issues (4 posts)

  1. acorderob
    Member
    Posted 3 years ago #

    The plugin seems to add every image in the post as og:image tags. I'm interested in an option to not do that some times. For example, my home page has a featured post block, and its thumbnail is pulled but i only want the default image (which is the site logo) for the home (and maybe other pages). Could you please support this, maybe using a custom field to disable image parsing by page/post? or maybe supporting that each image can be excluded using some css class.

    It would be nice if pages had excerpts in WP, so the description field didn't need to be scrapped from the content (which is usually a mess). Maybe you could add a meta box for this?

    And finally, as i have read in the FB docs, the og:locale not only specifies the locale of the page, but, if filled, FB can ask for your url with a parameter to get a different locale. I don't think my multilanguage plugin (WPML) implements this, so i would like to have an option to disable adding the og:locale tag, so it stays as the default (and so FB do not ask for another locale).

    http://wordpress.org/extend/plugins/simple-facebook-connect/

  2. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    I'm not interested in adding an option for this, but if you want to use your own code to decide what is in the meta, you can use the sfc_base_meta filter to change any part of the metadata before it is put into the post. The og:images and og:locale can both be modified/removed here.

  3. Samuel Wood (Otto)
    WordPress.org Tech Guy
    Plugin Author

    Posted 3 years ago #

    Also, if you want pages to have excerpts, add this to your theme's functions.php file somewhere:

    add_post_type_support('page','excerpt');

  4. acorderob
    Member
    Posted 3 years ago #

    Thanks. I will use the sfc_base_meta filter to remove og:locale, and looking your source code i have found the sfc_img_exclude filter so i can exclude certain images by css class. Nice and tidy :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic