WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Simple Facebook Connect] Open Graph tags issues

[Plugin: Simple Facebook Connect] Open Graph tags issues

  • 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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    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.

    Plugin Author Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

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

    add_post_type_support('page','excerpt');

    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 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Simple Facebook Connect] Open Graph tags issues’ is closed to new replies.