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


#1

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 : "https://static.tildacdn.com/3822bddd-1dd3-49d3-ab85-786e48820599/myblend_web_logo_vert_black_trans.png" %> />

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

See http://www.robotstxt.org/robotstxt.html 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: /


#2

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.


#3

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