如何告诉Facebook哪个div是“内容”一? (链接摘要) [英] How to tell Facebook which div is the "content" one? (for links summary)

查看:139
本文介绍了如何告诉Facebook哪个div是“内容”一? (链接摘要)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在blogger.com上托管了一个小博客



我不明白为什么当人们喜欢或分享Facebook上的博客文章时,真正的内容是 /due-settimane-di-breakon.htmlrel =nofollow>这篇文章,总结是我放在边栏上的小的关于我,而在这个其他帖子,摘要是第一个评论。



很奇怪,我能做什么?有一种方法,例如一个类来表示主要内容div?

解决方案

在Blogger上实现开放协议。它使用其标记语言标记帖子标题,描述,图像,作者等。请参阅本教程在Blogger上实施ogp


I have a small blog hosted on blogger.com

I don't understand why, when people like or share a blog post on Facebook, the real content is never fetched as a summary.

For example, for this post, the summary is the small "about me" that I placed on the sidebar, while on this other post, the summary is the first comment.

It's weird, what I can do? There is a way, for example a class, to indicate the main content div?

解决方案

Implement opengraph protocol on Blogger. It marks the post title, description, image, author etc using its markup language. Refer this tutorial on Implement ogp on Blogger

这篇关于如何告诉Facebook哪个div是“内容”一? (链接摘要)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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