How to make a presentable link

5

How do I "index" a link on a website to display it in a more presentable way? Example sites / app that do this is whatsapp, facebook, gmail. For example, in whatsapp just paste a link and wait a few seconds for it to take an image and link title and make it more presentable. If you have any plugins in php, or javascript, or jquery, etc., doing that is already a big help. I intend to apply this solution in the Php language.

Idonotknowif"crawling" is the correct term, but if anyone knows, even English, I can pass the correct term for me to search.

    
asked by anonymous 08.06.2016 / 17:17

2 answers

4

The producer of the information is responsible for generating this information. So to do this you need to 'open' the page to read its source code to get these meta parameters:

But you have to build a formatted HTML in your own way to show where you want it.

Basically,seethetagsog:title,og:description,og:imageandog:url.

Facebookhasatoolthatallowsyoutotestwithanyurl.Access: link

Paste some link there and see the 'indexed' link in addition to these meta tags read. See an example with this link link (which I am myself in GIF rsrsrs):

    
17.06.2016 / 16:10
1

The name of this is The Open Graph protocol ( link ) Find on Google for "The Open Graph protocol plugin" and see what applies to what you need.

Find something here: link

    
17.06.2016 / 16:21