Share content with social networks through direct link


I need to know what is the correct format to share the web page by direct link.

I found the following format to share links on Facebook:[ENLACE]
&picture=[URL DE LA IMAGEN]

I have researched and found general formats and their respective attributes but not all the labels available for the format are available.

In Google I only found the format to share the link:      link

For Twitter I want to know how to share an image.

But I would like to know what are the values to add an image, to put the title and description.

I am interested in being able to do it without having to use meta tags, because I think they are unnecessary.

Thank you very much.

asked by El Tito Barte 03.02.2016 в 17:47

3 answers


For twitter you can use:[url]&via=trucsweb&image-src=[img]&text=[title964]

In the documentation you will see all the parameters

While for google+ according to the documentation it only supports two parameters: url and hl (see the part of Share Endpoint) there if you would have to find another method to share

answered by 03.02.2016 в 20:26

I think you only have doubt in Twitter , that this would be the way to share:

link ? url = URL_PAGE & text = MESSAGE

where the parameters are:


url : The URL of the page to share.


text : The text of the message.

It is important to consider that the text (also considering the url), can only contain 140 characters, if you send more than this length, the post will not be done correctly, and you would get the message:


Your Tweet was over 140 characters. You'll have to be more clever.

In Google + that would be done this way:

link ? hl = en & url = URL_PAGINA

where the parameters are:


url : The URL of the page to share. This value must be encoded URL.


hl : The language code .

answered by 23.06.2016 в 17:54

For facebook here is explained: link

The current and correct method of indicating which image to show facebook when we want to share, is the use of meta tags that the Open Graph protocol provides to integrate pages in social networks, more specifically, in the so-called Social Graph .

The meta tags that we will use and put in the "head" of the HTML are the following:

<meta property="og:title" content="Título de página" />
<meta property="og:description" content="Descripción de página" />
<meta property="og:image" content="http://midominio/imagen.jpg" />      
<meta property="og:url" content="http://midominio" />

In the first one (image), we indicate the image that we want to appear on facebook. It is possible to put several images and select one at the moment of sharing, for this it is enough to repeat the first meta tag with several images. The others are also useful and provide more information to the person who sees the shared web. And there are also more, which can be found in the reference guide.

answered by 23.06.2016 в 13:06