Facebook Sharer Can't See OG:IMAGE Tag At First Check

放肆的年华 提交于 2019-12-10 19:48:30

问题


I am trying to share this url via facebook(change RANDOM_STRING with any random string because of facebook cache):

http://www.ikposta.com/blog/goster/72/test_RANDOM_STRING

at first try facebook will decide picture which is there is a men. Refresh facebook page and try again share with same url at this time picture will be changed and you will see keyboard image which is correct image.

og:image tag is always correct why this is happening ?

How can I prevent ?


回答1:


Run your URL through the Facebook Object Debugger to make sure that your OG image tag is correctly being picked up by Facebook. This will also force a re-cache of the image.

I ran it through quickly and there were a couple errors that came up. Primarily missing URL and title OG tags. You'll want to have these to avoid circular redirects. See here: Debugged

I would personally remove that cache bust all together. It's confusing Facebook because it looks like a directory. If anything, use a query string.



来源:https://stackoverflow.com/questions/21397703/facebook-sharer-cant-see-ogimage-tag-at-first-check

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!