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

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

问题描述

当您将链接添加到您的 Facebook 页面时,经过一些处理,Facebook 会为您提供一个下一个/上一个按钮,以选择链接到您正在插入的网址的图像.

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 页面并显示在您插入的 url 上找到的图像.

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

有谁知道 Facebook 使用什么算法来决定显示哪些图像?

如果我插入一个链接:http://www.staplijst.be/lachende-wandelaars-aalter-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 代码构建的,但功能相同.

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.

我会进一步调查,因为如果我知道 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).

但是如果有人有任何想法?帮助将不胜感激.

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

推荐答案

这看起来像一个副本:Facebook 发布链接图片

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

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

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