algorithm - how facebook extract abstract of shared linked (articles) ? -


when sharing article on facebook in status, facebook generates title, abstract , attach image shared article.

for instance, putting www.stackoverflow.com in status geenrate

stack overflow https://stackoverflow.com/ collaboratively edited question , answer site professional , enthusiast programmers. it's 100% free, no registration required.

(which btw: not in source code of stackoverflow.com page)

but when trying article in news website, extracted results source code of page (check article in www.goal.com example) ..

any idea algorithm facebook uses ?

the meta data used facebook display links extracted html source code.

as @amit said, description present in source , title taken title tag.
can see facebook complaining though if check url in debugger.
if click last link on page (see our scraper sees url) can see response fb scrapper getting.

this source can differ in browser (though not in case) since websites check user agent string , if it's fb scrapper (facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)) different response returned.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -