Twitter card validation - WARN: No metatags found

cards

#1

I’ve added twitter meta tags to the site but the validator cannot see them.

Example: https://www.stlouis-mo.gov/government/departments/mayor/news/inauguration-day-in-the-city-of-st-louis.cfm

I went through the FAQ and a bunch of similar posts but haven’t found a solution.

The content type looks correct, when I do a curl with the Twitterbot user agent it works fine and I can see the meta tags. I can’t figure it out.

There is some crap at the top of the head that our CMS puts in there, not sure if that’s causing an issue or not but I don’t think I can get rid of it.

Any ideas?


#2

This is an odd one, but I’m just wondering whether your server(s) may be blocking or ignoring Twitterbot’s IP? I’m seeing a 404 response when I hit that URL with the crawler.


#3

Perhaps, is there a way I can test that?

The validator seems to find it just fine.


#4

I’m having the same issue, I believe it’s related to the filename extension. You are using a .cfm (coldfusion). I’m using cshtml (c# html). Check these two test pages out:

Working (.html): https://kelley.iu.edu/about/success/twitter-test.html
Not Working (.cshtml): https://kelley.iu.edu/about/success/twitter-test2.cshtml

The .html runs through the validator perfectly, the .cshtml cannot find any of the meta tags. I believe that this is somehow related to the file extension.

Cheers,
-Cody


#5

The second or your URLs returns HTTP 403 to the crawler:

$ curl -A Twitterbot -i https://kelley.iu.edu/about/success/twitter-test2.cshtml
HTTP/1.1 403 Forbidden: Access is denied.
Content-Length: 1233
Content-Type: text/html

There’s more about how to troubleshoot in the pinned post, and in the documentation.


#6

Thanks for the lead, I’ll take a look to see why we get that 403 now. Thank you!


#7

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