Twitter card appears fine in validator, but doesn't show an image correctly on Twitter?


I have variables in the html title and image tags. The title tag also seems to get cut off in both the validator and on twitter.

<meta name="twitter:card" content="summary" />
<meta name="twitter:site" content="@myblendapp" />
<meta name="twitter:title" content=<%=@email.subject%> />
<meta name="twitter:description" content="View the newsletter on myblend!" />
<meta name="twitter:image" content=<%= @email.image_url ? @email.image_url : "" %> />

Here is the robots.txt file. All the following lines are commented.

See for documentation on how to use the robots.txt file

To ban all spiders from the entire site uncomment the next two lines:
User-agent: *
Disallow: /


My guess is that your image is probably blocked by the robots.txt file. Hard to know, since it seems to be a variable field. Take a look at the troubleshooting topic for more hints.

closed #3

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.