Player Card: Redirect link for image showing black thumbnail


#1

Hi, in my twitter card, the twitter:image contains a link which redirects to an image. I have tested thoroughly and it seems as though we need to provide a direct link to an image to get it to work. Could someone please confirm this? Thank you!


#2

Yes, and it should be a fully qualified URL with http/s protocol prefix, and not blocked by robots.txt.


#3

User-agent: Twitterbot
Disallow:

This is what robots.txt is supposed to look like correct? Anything else you think could cause this problem? Thanks!


#4

That looks fine. What is the value you’re passing in for twitter:image and is it a valid file?


#5

the twitter:image redirects to a image. Could that be the issue? I saw that youtube uses just straight image urls. As of now, it looks like this - https://play.vidyard.com/YXLgK5GmpuzdSeu4uvg3wx.jpg?


#6

Yes the issue here is that the URL you’ve provided actually returns an HTML body (as well as the redirect header) and that the redirect is to a relative URL, not an absolute one including the protocol prefix. Annoyingly, the fetcher is pretty finicky about this.

Two things to try:

  • change the redirect to include the http: prefix on the cdn relative link
    OR
  • avoid the redirect altogether (which is obviously not ideal, as you lose the benefit of the CDN)

I have a hunch the first option will work, but if not, try the second. In both cases though, bear in mind the 7 day cache on the cards crawler, so things may not resolve straight away.


#7

Okay sounds good! 7 day cache can’t be avoided? Thanks!


#8

There’s some troubleshooting tips about how to try to force a refresh, but it’s a common cause of issues.


#9

Okay, thank you for the help!!


#10

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