Social Cards Sharing – Image not appearing

  • Unknown's avatar

    I am trying to share my wordpress site’s pages and posts on facebook and twitter. All meta data for title, description, and image are all showing up in the page source code, but the images are still not appearing across all social media platforms. I have tried various plugins that change the meta data for Open Graph and Twitter cards, but all of them have the same issue. Title and description can be changed, but the image is still not being picked up by the social media scrapers.

    I currently have yoast SEO installed and that is managing the meta data.

    The url of my site is https://toastmodernism.com

  • Unknown's avatar

    Hi!

    Are you using the self-hosted version of WordPress.org, or are you hosted on WordPress.com?

    If the former, you may be better served on the WordPress.org Support Forums.

    That said, I noticed that the images in question are inaccessible from anywhere other than in your actual post. When I try to visit any of the images themselves in my browser, I get a 404 (not found) error; I’m guessing the same thing is happening when Twitter, Facebook, etc. tries to pull these images.

    Are you by chance using the plugin User Access Manager?

  • Unknown's avatar

    Self-hosted.

    I did have a suer management plugin installed previously, but deleted that. I also just discovered the image links are inaccessible and got the 404. I’ve always been logged in so I never noticed that previously.

    Do you know how I can make the images public again?

    Thank you so much, this is definitely where the scrapers are getting caught up.

  • Unknown's avatar

    Try deleting .htaccess in your /wp-content/uploads directory, then try again. Currently .htaccess is blocking access to anyone trying to access those files – including social media sites.

    Let me know if this helps!

  • Unknown's avatar

    Actually, I just noticed that all of your OpenGraph and Twitter tags point to https://toastmodernism.com/wp-content/uploads/../../ – but your site automatically redirects to https://www.toastmodernism.com/wp-content/uploads/../../ (note the www.). That www. seems to be required to access the files, but the site redirects it to a URL that’s missing www.

    Go to your Dashboard > Settings > General, and let me know what your “WordPress Address (URL)” and “Site Address (URL)” settings say. Is there a www. or no?

  • Unknown's avatar

    Ah nice, there is no www. in the general setting.

  • Unknown's avatar

    I also checked in the htaccess file and there was some extra code in there that affected the img links as well which I have removed.

  • Unknown's avatar

    I just tried to share a few of your posts on Twitter. It seems to work now (at least for me)! Let me know if it’s still not working for you! :)

  • Unknown's avatar

    It works! Thank you so much!
    You are amazing!

  • Unknown's avatar

    So happy to hear! :D

  • The topic ‘Social Cards Sharing – Image not appearing’ is closed to new replies.