see attached image for what appears in twitter after using twitter post.

I tested tweeting from a very simple 'product' with the default image field, to have a very simple test. This was the result.

We upgraded to the dev to see if that would fix it (were also having this issue with 7.x-6.2 and 7.x-5.11.

I don't see any other notes except one to do with images being links, this one is not a link.

CommentFileSizeAuthor
twitter-post-no-image.png36.16 KBstellarvisions
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

stellarvisions created an issue.

joe_pixelrow’s picture

You need to setup Twitter Card Metatags so that Twitter will retrieve the image and display it as a large image in your tweet.

Get the Metatag module and enable the Twitter Card submodule

Setup the Twitter Card metatags for Node since you will need the token for the image file

You will be setting up Large Image style tweet
Very Important - THE IMAGE DIMENSIONS MUST BE 1080 X 540, or maybe larger with 2x1 proportions
OTHERWISE IMAGE IS REJECTED AS TWITTER IS NOT GOING TO CROP YOUR IMAGE
I created an image style called Twitter to create the perfect 1080x540 image and then select this version as the Display Field version ( you can use css to adjust display size for your website).

Once you have the website setup with metatags, grab the url for the page and test it on the twitter card validator - Google for link
If the url validates then you should be able to edit that content, check box to post to twitter, and your tweet will appear as you expect

Hopefully this includes all the info you need, I just got this working last week, finally found error message pointing out image size problem

Good Luck, its awesome once its working

stellarvisions’s picture

THANK YOU joe_pixelrow!!!

This worked great, and I discovered a parallel path for FB using Open Graph.

One tip: we usually do not 'allow upscaling' in our image styles, but for this I checked that and it helped all our images work in twitter.