How to tell Facebook which div is the “content” one? (for links summary)

烈酒焚心 提交于 2019-12-24 20:35:17

问题


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?


回答1:


You need to implement the Open Graph tags for Facebook into your blog.




回答2:


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



来源:https://stackoverflow.com/questions/13779181/how-to-tell-facebook-which-div-is-the-content-one-for-links-summary

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!