Sorry to post this as an issue, but I just installed, and the module seems to work OK, but all I have access to is Title, Summary, Location tags and contact tags.

The documentation says "This module makes it easy to select the image thumbnail used to represent the node (used by Facebook when constructing a preview). The editor is shown a list of thumbnails of all images associated with the node (both as fields as well as images embedded within the node's body content)." but I can't figure out how to make this work. I have thumbnails attached to my nodes, as well as image URL's in the body. Permissions are correct, and the module is enabled for my specific content type, but nothing's showing up that lets me edit og:image or anything else beyond what I've listed.

Additionally, is it possible to use other og tags like og:video?

CommentFileSizeAuthor
#6 images.patch676 bytesrares

Comments

hiddentao’s picture

I'm really not sure why this isn't working for you.

Are you using the built-in Body field for your content type? That's the field it searches for image tags from which to extract image URLs.

hiddentao’s picture

Status: Active » Postponed (maintainer needs more info)
natts’s picture

Category: support » bug
Status: Postponed (maintainer needs more info) » Active

I also have this problem - where I'm not given a choice, when editing the node, to select an image to use for og:image, when there is definitely an image node (with a thumbnail etc.) attached to the node.

I can edit Title, Summary, Type, Contact details and Location details, but not choose an image. Ideally I would like the default to be to use the single image that is attached (assuming there is just one), or if more than one then the first/top image that is attached, without having to select this for each node (that has one image or more attached).

When I say attached, I mean using Image Attach from http://drupal.org/project/image

Example:

http://developers.facebook.com/tools/lint/?url=http://www.facebookgarage...
http://www.facebookgarage.org.uk/person/dave-nattriss

The photo (of me) on the page is not picked up by this module (and thus not referenced in the og:image), despite being attached to the node.

natts’s picture

D'oh, forgot to update the status.

merviemilia’s picture

Yes, Image Attach support would be great. Now the module ignores attached images all together.

rares’s picture

StatusFileSize
new676 bytes

I am having the same issue where attachments are not being picked up by the module. I made a change to the code that fixed the issue for me. I think that the line $this->_extract_image_fields_from_node((array)$node, $ret); could be removed altogether, including the recursive logic in that _extract_image_fields_from_node function.

merviemilia’s picture

That patch doesn't seem to work for this issue.

I'm checking are we talking about the same issue here: This problem is about the Image Attach, not file attachments. The module doesn't pick up the images that have been attached to the nodes with Image Attach.

Edit, for being clear: I tested this patch with the Image Attach issue and it doesn't fix it.

rares’s picture

The OP mentioned noting of Image attach, @natts added in his comment. I can open a separate issue for attachments, but I would ideally like to get feedback from the maintainer on this patch in this thread, since it is in line with what the original post described.

ywarnier’s picture

Hi there, I had the same problem. Applied the patch in #6, flushed cache, and it worked. I then *removed* patch in #6, flushed cache and... it continued working! Not sure what that was, but before that I had been flushing the cache *a lot* (we're in the middle of our development phase) and the image field never appeared in the OpenGraph section.

Jorrit’s picture

I also have the problem that the image is not taken from the node when there is a default image. Because of the way the module loads the data, the image URL taken from the node is overwritten by the default instead of the other way around. A work-around is to not have a default image.

hiddentao’s picture

Am looking into this.

hiddentao’s picture

Is this still an issue in the latest release?

Jorrit’s picture

hiddentao’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.