Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
255 views
in Technique[技术] by (71.8m points)

html - 1x1 px og image facebook

So i have used the og tags several times and have successfully been able to share blog posts with custom images, but for some reason, I can't figure this one out.

According to fb debugger, all of my meta tags are correct, and I'm getting a 200 code. Even the Raw open graph document information shows the full correct path of the image I have added with the http prefix, which if i copy and paste on a new tab, will take me to the correct image. But the image in the object properties is replaced by a 1x1 px dot that I can only see if I inspect the element. I know that the whole og thing has been talked about over and over again, but i could not find an answer anywhere for this weird 1x1 px problem. The link i am trying is http://ladyilgphotography.businesscatalyst.com/lady-ilg-journal/casper-and-maggie-beautiful-wedding-grant-humphrys-mansion-wedding

Thank you for any help you might have.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There's probably a problem with the image url not being properly escaped on the opengraph tag.

At the end, the og:image has a space and then parenthesis... But it isn't escaped on the HTML code: http://ladyilgphotography.businesscatalyst.com/images/journal/love/weddings/Casper and Maggie--wedding/best_wedding_photographer_in_denver (16).jpg So once the Facebook fetcher script tries to access that URL, it's probably not going to find it...

Have you tried escaping the filename in that URL?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...