Closed (duplicate)
Project:
Drupal for Facebook
Version:
6.x-3.0-rc14
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Mar 2008 at 21:29 UTC
Updated:
9 Jul 2011 at 20:00 UTC
I use the CCK to ensure that an image is displayed with each post (on my site, most posts are game reviews, and these images are screenshots).
When this content goes through Drupal for Facebook, the images do not get displayed. I believe this is because:
Shouldn't Drupal for Facebook be set up only to rewrite URLs for Anchors? I'd think anything else should continue to point to the hosting site...
Comments
Comment #1
Dave Cohen commentedDrupal for Facebook changes the global base_url, all URLs that are computed with it, or the l() and url() functions, are affected. This may not be ideal, but every other approach I can think of also has problems. I'm certainly open to other possibilities if you have ideas.
I'm not familiar with CCK Image Fields, but I suspect they use a theme function to render the image tag. If so it could be overridden in fb_fbml and the img src could be calculated differently. You're right that all image src attributes (and other URLs to files) should not be re-written to start with apps.facebook.com/,,, however I'm not sure how to do it. Maybe a patch to core is required.
Comment #2
costik commentedYep... rewriting the base URL would do it. IIRC, CCK doesn't use a theme function, per se, to do this, but a themable function, anyway, which I could over-write. I imagine a lot of modules use $GLOBALS['base_url'], though, which may make it tough to have module compatibility with Drupal for Facebook.
Comment #3
emarchak commentedI'm having the same issue with 3.0-rc14. I'm surprised that this hasn't been addressed yet.
I'm currently tackling this issue, and will post my findings. Any support that could be offered would be much appreciated.
Comment #4
emarchak commentedI ended up finding a solution and posted it at #1213500: Imagecache Image URIs not appearing on Canvas Pages. The issue was with additional text added to the uri in the path.
Comment #5
Dave Cohen commented#1213500: Imagecache Image URIs not appearing on Canvas Pages