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

  1. specialmachine
    Posted 2 years 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.



  2. Niall Kennedy
    Plugin Author

    Posted 2 years ago #

    Yes, you can add a fallback image by acting on the fb_meta_tags filter.

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Facebook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic