如何添加一个链接时,Facebook的检测图像? [英] How does Facebook detect images when adding a link?

查看:175
本文介绍了如何添加一个链接时,Facebook的检测图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你添加一个链接到你的Facebook页面,一些处理之后,Facebook的presents你下一个/ $ P $光伏按钮选择链接到您插入的URL的图像。

When you add a link to your Facebook page, after some processing, Facebook presents you a next/prev button to choose an image linked to the url your are inserting.

显然,Facebook的读取HTML页面,并显示您插入的网址找到的图像。

Obviously, Facebook reads the html-page and displays the images found on the url you insert.

有谁知道什么算法的Facebook用来决定显示哪些图片

如果我插入一个链接: HTTP://www.staplijst .BE / lachende-wandelaars-阿尔特尔-aktivia-003.asp ,只检测11图像。一个我想,一个在右上角,不包括在列表中。

If I insert a link to : http://www.staplijst.be/lachende-wandelaars-aalter-aktivia-003.asp, only 11 images are detected. The one I want, the one at the top right corner, is not included in the list.

如果我插入链接到的http://www.staplijst.be/stichting-kennedymars-rijsbergen-zundert-nederland-knblo-nl-81996.asp,显示19图像(包括一个我想要的(一个在文本区域的右上角)。

If I insert a link to http://www.staplijst.be/stichting-kennedymars-rijsbergen-zundert-nederland-knblo-nl-81996.asp, 19 images are displayed (including the one I want (the one at the right top corner of the text area).

这两个网页建设采用asp code,但在功能上是相同的。

Both pages are build using asp code but are functionally the same.

我认为这事做的图像大小,但无法找到任何决定性的因素存在。

I thought that it has something to do with the image size, but can't find any deciding factor there.

我将调查一些furhter,因为如果我知道什么是Facebook正在寻找,我可以确保正确的图像包含在页面上(因为它们是动态页面建立与传统的ASP)。

I will investigate some furhter, because if I know what Facebook is looking for, I can make sure that the correct images are included on the page (since they are dynamic pages build with classic asp).

但是,如果任何人有任何想法?帮助将AP preciated。

But if anyone has any idea ? Help would be appreciated.

推荐答案

这看起来像一个重复:
<一href=\"http://stackoverflow.com/questions/1079599/facebook-post-link-image\">http://stackoverflow.com/questions/1079599/facebook-post-link-image

Use <link rel="image_src" href="abs_url_of_your_image">

这篇关于如何添加一个链接时,Facebook的检测图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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