共享链接不会发布图片 [英] Sharing a Link doesn't post Image

查看:90
本文介绍了共享链接不会发布图片的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当一个人共享一个指向我们网站的URL时,没有显示图像. 在 https://developers.facebook.com/tools/debug 处使用调试器,然后将调试器放入 http://www.muscleandfitness.com/videos/training的网址/workout-101-overhead-pullover-video 它表明meta标签正确无误,并显示了图片.

Images aren't being shown when a person shares a URL to our site. Using the debugger at https://developers.facebook.com/tools/debug and putting in the URL of http://www.muscleandfitness.com/videos/training/workout-101-overhead-pullover-video It shows that the meta tags are correct and an image is shown.

但是在Facebook.com上共享此链接,但未显示图像.

However share this link on Facebook.com and no image is shown.

使用Firebug,我可以看到图像抓取器仅返回1x1像素.

Using Firebug I can see that the image scraper only returns a 1x1 pixel. https://www.facebook.com/ajax/composerx/attachment/link/scraper/?scrape_url=http%253A%252F%252Fwww.muscleandfitness.com%252Fvideos%252Ftraining%252Fworkout-101-overhead-pullover-video&composerurihash=2 composerurihash 2 scrape_url http%3A%2F%2Fwww.muscleandfitness.com%2Fvideos%2Ftraining%2Fworkout-101-overhead-pullover-video Safe Image returns a 1x1 pixel: https://fbexternal-a.akamaihd.net/safe_image.php?d=AQBBILbPW7Po7Cds&url=http%3A%2F%2Fwww.muscleandfitness.com%2Fsites%2Fmuscleandfitness.com%2Ffiles%2FOverhead-Pullover_rotator_0.jpg

我需要解决此问题的帮助,以便我们可以轻松地与图像共享URL.

I need help in fixing this issue so that we can easily share URL's with the image.

推荐答案

我也遇到了类似的问题.我的问题是因为图像名称中有一个空格".因此它不会出现在 facebook调试器中,也不会出现在共享中.

I also get into a similar problem. My problem is because of the image name has a "space" in it. so it is not appear in the facebook debugger and also in sharing.

因此,我通过编码部分用连字符(-")替换了空格,从而解决了该问题.之后,我在 facebook调试器中调试了网址,它出现了.这意味着Facebook不会使用空格"显示图像名称.但是,这背后没有逻辑上的原因.无论如何,它将帮助某人.

So i fixed the issue by replace space with hyphen("-") through coding part. After that i debug the url in facebook debugger, it appears. That means Facebook wont show the image name with "space". But there is no logical reason behind this. Anyway it will help someone.

有关更多信息,请查看

For more information check this answer posted by Patrick D'appollonio. It helps me.

这篇关于共享链接不会发布图片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆