facebook如何识别输入的超链接并从该链接中获取数据。它显示缩略图、文本、图片等。facebook是否使用任何javascript作为框架?
发布于 2013-10-20 08:37:54
开放图协议(OGP)是帮助Facebook从URL获取特定数据的工具,即网页标题、网站名称、描述.在您的网站上安装OGP (页面)
将:prefix="og: http://ogp.me/ns#"添加到<html>标记中
和:
<meta property="og:title" content="{Title}" />
<meta property="og:type" content="{site_type}" />
<meta property="og:url" content="{page_URL}" />
<meta property="og:image" content="{Thumbnail}" /> 在<head>标签之间。
以上是基本的元属性,您可以在OGP上更多地了解它。
https://stackoverflow.com/questions/19467650
复制相似问题