Answer the question
In order to leave comments, you need to log in
Is it possible to attach a picture when sharing to Twitter?
I share from the site to Twitter as in the article on Habré habrahabr.ru/post/156185
url = 'http://twitter.com/share?';
url += 'text=' + encodeURIComponent(ptitle);
url += '&url=' + encodeURIComponent(purl);
url += '&counturl=' + encodeURIComponent(purl);
Answer the question
In order to leave comments, you need to log in
I personally do this markup in the head
<meta name="twitter:card" content="">
<meta name="twitter:site" content="">
<meta name="twitter:creator" content="">
<meta name="twitter:title" content="">
<meta name="twitter:description" content="">
<meta name="twitter:image:src" content="">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question