Social Cards Sharing – Image not appearing
-
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
-
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?
-
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.
-
Try deleting
.htaccessin your/wp-content/uploadsdirectory, then try again. Currently.htaccessis blocking access to anyone trying to access those files – including social media sites.Let me know if this helps!
-
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 tohttps://www.toastmodernism.com/wp-content/uploads/../../(note thewww.). Thatwww.seems to be required to access the files, but the site redirects it to a URL that’s missingwww.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? -
-
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.
-
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! :)
-
-
- The topic ‘Social Cards Sharing – Image not appearing’ is closed to new replies.