在网站上发布类似帖子后,我必须自定义facebook个人页面中显示的元素。
我看到图片、标题和链接都显示了,但我也必须显示帖子描述。
我读到,在一些"可能的问题…"之后,我应该使用Open Graph API,但我会做有史以来最简单的解决方案,包括"描述"。如果我能使用Facebook提供的基本解决方案,那将是一个更好的解决方案。
有什么建议吗?
您必须在文章的HTML页面中使用Open Graph API标题。例如,在你网站的任何帖子页面中,你都必须在你的头部部分添加这样的内容
<meta property="og:type" content="website" />
<meta property="og:site_name" content="Site name" />
<meta property="og:title" content="Title" />
<meta property="og:description" content="Some description" />
<meta property="og:image" content="..." />