Facebook multiple og:image tags - Which is Default?

后端 未结 3 1026
萌比男神i
萌比男神i 2020-12-29 03:03

My web site specifies multiple og:image tags, and I\'d like to control which one is the default. Does it have something to do with the order in which they\'re specified?

3条回答
  •  鱼传尺愫
    2020-12-29 03:35

    I was curious, so I scoured around trying to find an answer to the "default image" question. This was literally the only link I could find where any research had been done on the matter, where they suggest that higher-res images will receive top priority:

    How to set priority order to Open Graph images for links that are inserted in comments. (Not sharing or wall posts.)

    However, based on that example, FB might just be picking the last og:image tag on the list. A previous SO answer came to a similar conclusion:

    Facebook sharer.php, how to have multiple og:image tags?

    I apologize if I answered your question with more questions, but maybe this will give you a good lead, at least. If you add more tags and FB consistently picks the last one, you'll hopefully have your solution. :)

提交回复
热议问题