What is the minimum width and height Of Facebook Open Graph Images?

后端 未结 15 2005
孤独总比滥情好
孤独总比滥情好 2020-12-03 00:35

I had read that images associated with a given URL in the Facebook open graph had to be greater than 50 x 50

However, when we ran the Facebook Object debugger - we g

15条回答
  •  南方客
    南方客 (楼主)
    2020-12-03 01:24

    Looks to be a bug in the specification. A work-around solution is to make your images 200px but clip what you do not want to see, or shrink them if you have large enough originals. For example, if your image is 25x25 pixels you can add 175px to both dimensions and then nest that image inside of a div that has an overflow:hidden css property and width/height of 25x25. Not the cleanest, but it would work.

    I've opened a bug ticket with Facebook to address the question of poor documentation and uncover if this is an actual spec or bug. http://developers.facebook.com/bugs/210269722417284

提交回复
热议问题