6

I have installed the Metatag module, along with ImageCache Token, but it just does not work.

I have tried many of the different available tokens in the Open Graph image field for my node, and none of them generate a og:image tag. For instance, I have tried:

[node:my_image]
[node:my_image:large:path]
[node:my_image:large]
[node:my_image:thumbnail]

if I hard-code a URL rather than use a token then it works, but that rather defeats the purpose. My logs contain no errors, and I remember to clear the cache each time. This is driving me nuts. Anyone know what might be wrong?

  • 1
    Have you installed the imagecache_token module? After having enabled that it worked for me. – berliner Aug 3 '14 at 23:05
  • Yes, I did (sorry I put "ImageCache" instead of "imagecache_token" in my post above). – James Aug 4 '14 at 14:55
  • I'm also having this exact issue. The error on the facebook debug console developers.facebook.com/tools/debug/og/object is og:image was not defined, could not be downloaded or was not big enough. Please define a chosen image using the og:image metatag, and use an image that's at least 200x200px and is accessible from Facebook. I have a hunch that that this has to do with the security vulnerability addressed in Drupal 7.20 and 7.21 where all image styles add a token to the url, to prevent DoS attacks, but not sure. – JamesWilson Dec 20 '14 at 6:22
  • Have you tested on the Facebook debug page as mentioned by @JamesWilson? – Alfred Armstrong Mar 23 '15 at 14:47
  • This drupal.org/node/2631408 or this drupal.org/node/2667850 may be the issue. Hopefully they push out a release soon. – StevenPatz Mar 15 '16 at 14:36
1

Check that your image has at least 200x200 as defined in the error provided by Facebook debugger. Also use Ctrl+U in your browser to check that the og:image tag print the correct url

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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