Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Facebook OG:image tag to none or blank?

I have been scouring the Facebook docs and Stack Overflow to try to find a way to set the Open Graph image meta tags declaration to none or blank. I cannot find this anywhere, which is strange because I would almost be certain someone would have wanted to do this before, too.

I can find nothing.

My next guess -- to pull this off -- would be to set the OG meta image to a blank gif or png. This seems kind of hacky, but if there is no way officially to set the OG image tag to blank or none, is this the best (and only) way to do it?

like image 845
cliffbarnes Avatar asked Jul 09 '13 03:07

cliffbarnes


People also ask

How do I change the OG image?

You can set a custom og:image on a page by page basis. Just go to Page Settings > Social Image > Upload. If you need to add other OG tags and customize the default settings, go to Page Settings > Advanced > Page Header Code Injection. Read the following section on adding the tags manually and copy-paste the code there.

How do you fix the OG image property should be explicitly provided?

Inferred Property The 'og:image' property should be explicitly provided, even if a value can be inferred from other tags. If you do not have the Open Graph tags specified, then Facebook will only fill in the gaps for the image, title, and description.

How do I use image width in OG?

OG Image Size: The recommended size for an OG Image is 1.91:1. The recommended pixel dimensions of 1200:630 px (aspect ratio of 1.91:1). If you have a photo on hand, use Kapwing's free OG Image Maker to resize your image to fit the OG Image area.


2 Answers

I think you've answered your own question. There is no way to do it in the Facebook API docs. You could try setting the meta data to a blank or white image and see if it works.

I hope that helps, even tho its not much of answer.

like image 128
CharlieTuna Avatar answered Oct 23 '22 16:10

CharlieTuna


After extensive research, I also tried the transparent image route, and while it does appear to get used by Facebook, there are various difficulties that made it unusable in our case.

  1. I attempted both a 1x1px transparent og:image (which Facebook ignores, because it doesn't meet Facebook's minimum specs (i.e., the image must be at least 200x200px).
  2. This led me to a 200x200 transparent PNG, which is used, but it presents a blank white image to the left of the article presentation (Facebook preview of a 200x200px og:image).
  3. I even attempted to set the width and height (OG) tags, and set it to 1px wide and 1px tall (though the actual image was 200x200). This seemed to achieve the desired result in Facebook's Object image debugger (i.e., no image on the left, just showing article text), but this success was short-lived. When I posted this same test to my actual Facebook news feed, the width/height attributes were ignored, and the image was again a square (200x200px) white box to the left of the article presentation.
  4. So we landed on using a default image (company logo), giving up hope that Facebook would allow us to force the omission of an og:image.
like image 44
wdc92 Avatar answered Oct 23 '22 18:10

wdc92