Use SVG as og:image

Facebook OpengraphSocial NetworkingSharing

Facebook Opengraph Problem Overview


Is it possible to use an SVG for an Open Graph image?

I tried it and it didn't work with Facebook, however I'm unsure if it's a problem with my SVG or if it's generally not possible.

I did it like this:

<meta content="http://www.example.com/mylogo.svg" property="og:image">

Facebook Opengraph Solutions


Solution 1 - Facebook Opengraph

Solution 2 - Facebook Opengraph

As of May 2014, Facebook does not formally define what images they support (you can read their best practices here), though the implication by the optimal sizes (1200 x 630 pixels for high resolution devices and 600 x 315 pixels for standard resolution devices) is that the image must be a raster format.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionRaphael JegerView Question on Stackoverflow
Solution 1 - Facebook OpengraphcaligoanimusView Answer on Stackoverflow
Solution 2 - Facebook OpengraphJason SperskeView Answer on Stackoverflow