1

I know that adding <meta property="og:image" content="<URL-HERE>" /> to an HTML page makes it generate a thumbnail image when sharing the URL on Facebook:

How to have the same with Twitter?

How should I modify my HTML page to have an image automatically added when I share an URL in a tweet?

2 Answers 2

3
<meta property="twitter:image" content="<URL-HERE>" />

You can use this meta tag for twitter. For more informations see here: https://dev.twitter.com/cards/markup

0

Put https://2fb.me before the URL

I.E https://2fb.me/https://twitter.com/shareU/status/936789197456777217

and share the URL

2
  • So this would share an URL on Twitter through FB?
    – Basj
    Dec 2, 2017 at 9:27
  • no the opposite. It shares to facebook from twitter.
    – Chamilyan
    Dec 2, 2017 at 21:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.