For sending pictures with posts you can at

$picture=url($node->field_image[0]['filepath'], array('absolute' => TRUE));

to the simpleshare.modal.inc and change one of the following lines to:

$fb_query = array('app_id' => $fb_appid, 'link' => $link, 'name' => $title, 'description' => $description, 'picture' => $picture, 'redirect_uri' =>$redirect, 'display' => 'popup');

Sorry, this part was quick&dirty.

But, isn't it possible to make a query if the imagefield is used?

Comments

Rob_Feature’s picture

Thanks for posting the issue. The problem is that you're calling your imagefield specifically by name (field_image). What if someone named their imagefield something else? (field_myimage) We could try to autodiscover imagefields on the page, but we may get multiple, they may not be intended for display, etc. In addition, maybe the user doesn't want the imagefield displayed...so we'd have to give them control over that, etc. There's lots of issues with this.

All of these reasons is why we just let facebook default to the site's logo by adding nothing.

If you have an idea for how to get a custom image in here easily, let me know...otherwise, I can't see how we could do this reliably and with enough control for the user.

Rob_Feature’s picture

Status: Active » Closed (won't fix)

Marking as 'wont fix' unless someone comes up with a better plan.