Facebook open graph image not displaying

后端 未结 9 2132
余生分开走
余生分开走 2020-12-24 12:17

I have run my site through the debugger and the correct og:image pulls up, but when I click the share button on my site I get a different image. If I click the share button

相关标签:
9条回答
  • 2020-12-24 12:52

    You need to use og:image:width and og:image:height Open Graph tags in order to render image immediately, as described here: Facebook Content Sharing Best Practices

    0 讨论(0)
  • 2020-12-24 13:02

    For what its worth, my problem was that I had "hotlink protection" on my cpanel, which was preventing FB to fetch the image and share it elsewhere. I unchecked it, and now it's showing the image.

    0 讨论(0)
  • 2020-12-24 13:03

    I have read that secure URL's need to have additional code in the call.

    og:image:secure_url - An alternate url to use if the webpage requires HTTPS.

    0 讨论(0)
提交回复
热议问题