• GoDaddy Community
  • Managed WordPress Hosting
  • Managed WordPress Hosting

    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 

    Managed Word Press CDN featured image Twitter Problem


    Every post on my WordPress website like (https://syriantech.com/2020/04/google-rolling-back-samesite-cookie/) have Featured Image as below:


    That image will be shown on Twitter when the link of the post is shared in a tweet.
    Because of the CDN all the images are on the CDN server, and Twitter could not fetch it, so sharing the link will not show a photo like this:
    image (1).png


    I used Twitter Card Validator from this link: https://cards-dev.twitter.com/validator and fetched the link and it gave me the warning as below:
    So Twitter says that the image may be restricted by the site's (Godaddy CDN Server https://secureservercdn.net/ file, which will prevent Twitter from fetching it.
    Could you please help me?
    Thanks and best regards.
    6 REPLIES 6
    Super User IV



    What's interesting is that it works with the Facebook Debugger - 


    One thing to try is to create / add a Robots.txt file in the uploads/2020/04 directory as per https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started


    Which talks about adding the twitter agent - I'm not sure if this will overwrite the CDN robots.txt file but it is worth a shot to test it

    I am a GoDaddy End User - Just Like You
    Check out my site! | I currently manage over 300 WordPress Websites
    * Please note that I offer free advice on this forum. Thank You Info If you would like personalized help, please contact me. Otherwise, please ask your question in the proper forum so the answer can assist EVERYONE in the community and not just you. Thanks! *

    Once your issue is resolved,
    please be sure to come back and click accept for the solution

    Get Better Support on the Community Boards!
    Etiquette When Asking for Help from the Community

    Thanks for your reply.


    Yes as you said it works with Facebook.


    I will try your advice and see what happens.



    I checked the robots.txt file it already allow everything


    Although i added the Twitterbot



    I think Godaddy must change their Server robots.txt file

    I will disable the CDN to stop the problem

    Hi @anasbarakat ,


    I use WPMUDev's Smush Pro for image compression, optimization, and serving images from a CDN.  I have not noticed any problems sharing featured images on any platform.  I will say though, its a royal pain if you make a post with the wrong featured image.  Once the social media platforms have it,  they're not real good about "refreshing". 


    Note that Yoast and SmartCrawl SEO plugins help tremendously with feature image selections for posting because they have fields specifically for images compatible with each of the social media platforms.


    I have also used the SNAP plugin from NextScripts and the Social Auto Poster by wpweb.  Both are very powerful and help with content sent to social media platforms.


    Hope this helps,


    Not Just Pretty Sites, Pretty Doggone Smart Sites

    Thanks for your reply.


    Actually it is not wrong featured image, the WordPress Them is helping me chosing and doing it write.


    The problem is that twitter couldn't get the image from the Godaddy CDN but it can if the image on my website.


    The SEO plugins will not solve it.


    Godaddy have to solve the problem on their CDN.