WordPress.org

Ready to get started?Download WordPress

Forums

Facebook
[resolved] Fallback og:image? (2 posts)

  1. specialmachine
    Member
    Posted 9 months ago #

    How do we specify a fallback for og:image? It seems something like this, or any particular custom fallbacks would be super handy to have with this plug-in through the admin panel. But short of that, how can I achieve the same thing in functions.php? Here's the error I get in Linter.

    http://cl.ly/image/2D1F1n2h3P2f

    http://wordpress.org/extend/plugins/facebook/

  2. Niall Kennedy
    Member
    Plugin Author

    Posted 9 months ago #

    Yes, you can add a fallback image by acting on the fb_meta_tags filter.
    http://wordpress.org/support/topic/customize-open-graph-protocol-for-your-site-or-network

    Facebook will reject small images (currently images less than 200x200) but can consume and resize images up to 5 MB in size. If you have a large PNG or JPEG image you can use as an og:image you should expose it; Facebook will handle resizing for its many presentation environments ranging from a HiDPI Android home screen to a square preview image next to the story summary.

    The og:image property is an array. The first valid image is used for unattended shares such as a Like Button click. If someone pastes your URL into a Facebook status message update they will be able to choose from up to three images.

Reply

You must log in to post.

About this Plugin

About this Topic