Closed (fixed)
Project:
Drupal for Facebook
Version:
6.x-2.0-beta4
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2010 at 10:55 UTC
Updated:
6 Apr 2012 at 04:37 UTC
Is there anyway to publish to wall post (via new node create) with CCK field data (text, image, etc.)
Comments
Comment #1
Dave Cohen commentedHere's a description of customizing a wall post: http://drupal.org/node/685320
The trick is to get the image url from the cck field and put that url in the media data structure that facebook expects. If you figure it out please share your code.
Comment #2
khalor commentedBuilding on the example Dave posted, I think you'd be modifying the attachments array in the custom module to look something like this:
Note that it's being passed through imagecache with a given 'facebook_preset' setting, as Facebook has a 90x90 pixel limit on images that can be posted in streams. So you'll need imagecache to size your image accordingly.
I haven't tested this, so it (probably) doesn't work - but it's a starting point. Also it's probably worth looking into Facebook's attachments documentation
Comment #3
13rac1 commented2.0 is deprecated. Closing old issue.