I have updated the robots.txt in our web app (digitalnz.org) to get twitter card working. It is working for one path but not other.

robots.txt

User-agent: Twitterbot
Disallow: *
Allow: /records/* (Working)
Allow: /user_sets/* (Not Working)

User-agent: *
Allow: /
Disallow: /records
Allow: /records/*
Allow: /user_sets/*
Crawl-delay: 1

In card validator i am getting this message for user_sets

INFO: Page fetched successfully
INFO: 5 metatags were found
WARN: Not whitelisted

What is the exact URL you are validating?

I tried this urls in the validator.

And these are the meta we have on this page.

<meta name="twitter:card" content="summary_large_image"> <meta name="twitter:url" content="http://api.digitalnz.org/records/1158536/source"> <meta name="twitter:site" content="@digitalnz"> <meta name="twitter:title" content="Surf lifesaving Flag"> <meta name="twitter:image" content="http://thumbnails.digitalnz.org/?src=http%3A%2F%2Fwww.mychillybin.co.nz%2Fviewphoto%2Fmychillybin100170%2Fmychillybin100170_916%2Fw%2Fmychillybin100170_916.jpg"> <meta name="twitter:description" content="Surf lifesaving Flag">

When I retrieve that page using curl -A Twitterbot http://www.digitalnz.org/user_sets/503a96141257577392004283 I don’t see the meta tags. Are you injecting them via Javascript after the page loads? That will not work.

Thanks @andypiper. We will have a look at this and get back to you if needed.

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