AnsweredAssumed Answered

Marketo blocks image for Twitter card

Question asked by Crystal Pacheco_SB on Jun 19, 2019
Latest reply on Jun 20, 2019 by Courtney Grimes

I created meta og tags for various social media platforms. The code itself is correct, but I get an error from Twitter saying it can't load the image because the robots.txt will not allow the Twitterbot to crawl. 


The image size for twitter is 300px x157px  and 129kb in weight.

<meta property="og:type" content="${og-type}">
    <meta property="og:title" content="${og-title}">
    <meta property="og:url" content="${og-url}">
    <meta property="og:description" content="${og-description}">
    <meta property="og:image" content="${og-image}">
    <meta property="article:published_time"  content="2019-04-10" />
    <meta property="article:author"  content="${og-author}" />
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@Company">
    <meta name="twitter:creator" content="@Company">
    <meta name="twitter:title" content="${og-title}">
    <meta name="twitter:description" content="${og-description}">
    <meta name="twitter:image" content="${og-image-twitter}">

Error from Twitter is:
WARN: The image URL specified by the 'twitter:image' metatag may be restricted by the site's robots.txt file, which will prevent Twitter from fetching it.



I think Marketo is blocking the Twitterbot from crawling the image.

I know a solution would be to host the image externally.

Is there any way of having the image be hosted in Marketo and allowing twitter to crawl it? 

The robots.txt would look like this:
User-agent: Twitterbot

I'm not sure if I feel comfortable allowing the twitter bot to crawl all of Marketo. 

Any ideas?