How does Facebook grab article text when pasting an url?

I'm a little curious about this useful feature of Facebook. When I paste the URL into "What do you have in mind?" box, it almost perfectly receives the body of the article. How does Facebook do it?

Thank!

+3
source share
4 answers

This is part of how Facebook Share works.

The Linter URL is also very useful. For example, if we test it with this very question , you can scroll down and see where it gets data from

", Facebook . URL- " ?' , . Facebook ? " <description> <p>

+3

Facebook, , . , Reddit .

, , .

Readability , - - .

+1

, , OpenGraph protocol - Facebook.

0

HTML, Content Main, , , , , , menus, Content, main body, right menu, top menu, main article .. ( ).

, . , div id="content"

. , facebook. , , , , .

0

Source: https://habr.com/ru/post/1770269/


All Articles