How to Include Lead Image of Webpage When in Tweet Button Is Clicked?


To day I searched $AAPL in the search bar and found that a number of tweets in the search result has a large image in the tweet along with the intro texts.
Here is a screen shot of the image

How do I implement something like this on my own website’s Tweet button, so that my vistors’ tweets will automatically include the lead image of the page?

I am currently using the following code for the button:

Please tell me what code I can add into this to for getting the the lead images tweeted.

Thank you.


Hi, this is achieved through the use of Twitter Card markup in your website. You’ll want to take a look at [node:8514] documentation and use a Summary or Photo card.


Thank you, I will look into Twitter Card.