Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Recently when I try to share my content on Facebook, everything appears normal except I cannot get it to display a picture. I'm using WordPress SEO to handle all of the SEO and Social metadata, but it doesn't really cover images that well.

When I use the Facebook Debugger, my webpages do not contain errors yet it still refuses to display images. I think the problem is happening because it is selecting the photo media using this format of link: http://media.detailsofmylife.net/uploads/2012/03/Alesso-Essential-Mix-200x125.jpg , but I am not sure why:

  • Why Facebook chooses that as the default image even though I have the full size version selected as the Featured Image.
  • Why Facebook has a problem with that format style of link image?

Any ideas or suggestions would be much appreciated as it's doing my head in!

share|improve this question
    
Close-voted as off-topic. This is a Facebook OpenGraph protocol question, not a WordPress question. (P.S. did you try searching the site for "Facebook + opengraph" before posting your question? –  Chip Bennett Apr 2 '12 at 15:50
    
Well I do consider it a Wordpress question as I also want to know why those particular thumbnails are being generated and chosen. –  Mark Spivey Apr 2 '12 at 19:57
    
But how does that make this question related to WordPress? The FB OpenGraph API is simply looking at images within the rendered content. How that content gets rendered is mostly irrelevant at that point - so it could be static HTML, or content generated by WordPress or any other CMS... –  Chip Bennett Apr 2 '12 at 23:15
    
Because I think is has a problem with the link style that is generated by the Wordpress thumbnails, therefore it is wholly to do with Wordpress. The dimensions of the thumbnail are being included in the image link, and although Facebook recognises to og:image reference, it refuses to display the image. Therefore I was wondering whether changing the link style would solve my issues. –  Mark Spivey Apr 12 '12 at 14:46
add comment

1 Answer 1

If you define a meta tag with the og:image property, facebook will pick this up as the image associated with that url.

https://developers.facebook.com/docs/opengraphprotocol/

share|improve this answer
    
Hi Nick, I had already done this prior to posting but facebook still refuses to display the image, even when I lint the url using the developer tools. –  Mark Spivey Apr 2 '12 at 14:57
    
    
Hi Nick, if it's a parsing error then I've been getting that too today for some reason, but I've got no idea why. If I try it until it properly resolves though it doesn't show any errors with the Open Graph Information. For example I just posted that Jesse Ware link on Facebook and it displays properly, although before it didn't. –  Mark Spivey Apr 2 '12 at 15:24
    
Your site has too many errors that need corrected before you can diagnose this problem. Your about page is returning a 503 status with facebook https://developers.facebook.com/tools/debug/og/object?q=http%3A%2F%2Fwww.detail‌​sofmylife.net%2Fabout. Also you might have permissions problems and I see mod_pagespped is enabled. This might have someting to do with it. –  Nick Apr 2 '12 at 15:35
    
I also see a random ? I think you might have an improperly closed php tag. –  Nick Apr 2 '12 at 15:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.