B
B
blabs2015-12-09 20:28:16
PHP
blabs, 2015-12-09 20:28:16

How to specify a picture for repost in facebook/vk/ok/twitter/google+?

When reposting from the site, the image is not picked up. How can I specify an image through the code?
I suppose the Title is taken from the Title, the Description is pulled from the Description. Right?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2015-12-09
@thewind

You can google about micro-markup. And you can give a page with one picture by user-agent.

A
Andrey Andreev, 2015-12-09
@b0nn1e

<meta property="og:url"                content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" />
<meta property="og:type"               content="article" />
<meta property="og:title"              content="When Great Minds Don’t Think Alike" />
<meta property="og:description"        content="How much does culture influence creative thinking?" />
<meta property="og:image"              content="http://static01.nyt.com/images/2015/02/19/arts/international/19iht-btnumbers19A/19iht-btnumbers19A-facebookJumbo-v2.jpg" />

Etc - ogp.me

N
Nat, 2016-04-11
Gadzhibalaev @NaTTs

We wrote a detailed article here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question