What code do I use to share on facebook the content of a page with a specific photo, title and description?

Asked

Viewed 928 times

-5

I need to share on facebook the content of a page with photo, title and specific description, how do?

1 answer

3


Actually, this is neither php nor css, but html!

<meta property="og:title" content="Título" />
<meta property="og:description" content="Descrição" />
<meta property="og:image" content="Link_da_Imagem" />

Just put this in your head, and change the attribute content of each tag. The first is the title, the second the description and the third is the image link.

In case, you will add this on the page that will be shared, sometimes it takes a while for Facebook to notice!

PS: I suggest you do a more thorough search next time, if you play your question on Google, you’ll find what you need.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.